]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
diamond-setup: Handle VERSION properly 464/head
authorBoris Ranto <branto@redhat.com>
Mon, 5 Sep 2016 12:05:25 +0000 (14:05 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 5 Sep 2016 12:06:22 +0000 (14:06 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
diamond-setup/build/build

index daf443320d3f9934bb6de4d928e649859f6af7fe..603310bb1c768ffd7204e1922ef32ed275fe05a8 100644 (file)
@@ -26,6 +26,9 @@ if [ -x install-deps.sh ]; then
   ./install-deps.sh
 fi
 
+# Get the version
+VERSION=$(./version.sh)
+
 # Make sure the repo is clean
 echo "Cleaning up the repo"
 git clean -fxd
@@ -34,7 +37,7 @@ echo "Building source distribution"
 python setup.py sdist
 
 # Prepare the spec file for build
-sed -e "s/@VERSION@/${vers}/g" < diamond.spec.in > dist/diamond.spec
+sed -e "s/@VERSION@/${VERSION}/g" < diamond.spec.in > dist/diamond.spec
 
 # Save these so that we can later inject them into the build script
 cat > dist/sha1 << EOF
@@ -46,5 +49,5 @@ BRANCH=${BRANCH}
 EOF
 
 cat > dist/version << EOF
-VERSION=$(./version.sh)
+VERSION=${VERSION}
 EOF