From: Dan Mick Date: Fri, 29 May 2015 05:51:16 +0000 (-0700) Subject: Three fixes to ceph-setup/build/build: X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F74%2Fhead;p=ceph-build.git Three fixes to ceph-setup/build/build: 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 --- diff --git a/ceph-setup/build/build b/ceph-setup/build/build index 7e3f52be..3cf9297d 100644 --- a/ceph-setup/build/build +++ b/ceph-setup/build/build @@ -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 )