]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
remove the need for bindir to build rpms
authorAlfredo Deza <adeza@redhat.com>
Thu, 4 Jun 2015 15:12:58 +0000 (11:12 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 4 Jun 2015 15:38:08 +0000 (11:38 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/build_rpm

index c1d6c4efe9ef34a030fa75127dc43899ebed5871..e1c3f3ec6a4f116a6aa0de6efa10c841e38d2831 100644 (file)
@@ -12,11 +12,6 @@ echo "*****"
 env
 echo "*****"
 
-if [ ! -d /srv/ceph-build ] ; then
-    echo "Build tools are not installed"
-    exit 1
-fi
-bindir=/srv/ceph-build
 
 vers=`cat ./dist/version`
 # create a release directory for ceph-build tools
@@ -27,7 +22,6 @@ echo "${vers}-1" > release/${vers}/debian_version
 
 echo "Building RPMs"
 
-
 # The below contents ported from /srv/ceph-build/build_rpms.sh ::
 #     $bindir/build_rpms.sh ./release $vers
 #
@@ -35,10 +29,6 @@ echo "Building RPMs"
 releasedir="./release"
 cephver=$vers
 
-
-bindir=`dirname $0`
-echo "$bindir" | grep -v -q '^/' && bindir=`pwd`"/$bindir"
-
 # Contents below ported from /srv/ceph-build/get_rpm_dist.sh
 # dist=`$bindir/get_rpm_dist.sh`
 
@@ -102,7 +92,6 @@ rpmbuild -ba --define "_topdir ${BUILDAREA}" ceph.spec
 
 echo done
 
-
 #Collect Artifacts
 mkdir -p dist/rpm/${DIST}
 mv release/${vers}/rpm/*/SRPMS ./dist/rpm/${DIST}/.