]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Three fixes to ceph-setup/build/build: 74/head
authorDan Mick <dan.mick@redhat.com>
Fri, 29 May 2015 05:51:16 +0000 (22:51 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 5 Jun 2015 18:49:33 +0000 (12:49 -0600)
1) invoke sh with -ex for verbosity and exit-on-error

2) fix syntax error with [] (missing space before ])

3) restore commented-out mv before dpkg-source -b.
I'm not sure why the copy copies to release/$vers and then
later moves to ceph-$vers, but something has to put it in
ceph-$vers.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ceph-setup/build/build

index 7e3f52bec30762be5188448c4abb4c0f29fc47f9..3cf9297d89fa4b60f1c1a71c356996be3ec9f674 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -ex
 
 #export GNUPGHOME=/home/jenkins-build/build/gnupg.autobuild/
 export GNUPGHOME=/home/jenkins-build/build/gnupg.ceph-release/
@@ -65,7 +65,7 @@ fi
 
 mkdir -p release
 $bindir/release_tarball.sh release release/version
-if [ $? -ne 0] ; then
+if [ $? -ne 0 ] ; then
     echo "make tarballs failed"
     exit 2
 fi
@@ -73,7 +73,7 @@ vers=`cat release/version`
 
 (
     cd release/$vers
-    #mv debian ceph-$vers/.
+    mv debian ceph-$vers/.
     dpkg-source -b ceph-$vers
 )