summaryrefslogtreecommitdiff
path: root/bin/build-deb-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-01 23:57:35 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-01 23:57:35 +0200
commitac2f70e59befc349c1fd12084bc2b4782860741f (patch)
treebcb786af868ec051e6082da4124a8300184c32b0 /bin/build-deb-package
parentcbe1ab1106cc56af4f2cc7e7100f030396c26ec8 (diff)
downloadbuildscripts-ac2f70e59befc349c1fd12084bc2b4782860741f.tar.gz
buildscripts-ac2f70e59befc349c1fd12084bc2b4782860741f.tar.bz2
buildscripts-ac2f70e59befc349c1fd12084bc2b4782860741f.zip
bin/{build-{all-deb-packages,deb-package,nsis-package.sh},signtarballs,updatebuild{main,release}}: don't use a negative exit status. It was a bad idea to begin with.
Diffstat (limited to 'bin/build-deb-package')
-rwxr-xr-xbin/build-deb-package6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package
index 0ef3f6c..997c403 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -36,10 +36,10 @@ REPOS_SERVER="packages.mydomain.org"
PACKAGES_WITHOUT_OTHERMIRROR="keyring"
GNUPGHOME=$HOME/.gnupg
-test -z $1 && { echo "usage: $(basename $0) [<subpath>/]<git-project> {main,main/<codename>,nightly,nightly/<codename>} [<git-checkout>]"; exit -1; }
+test -z $1 && { echo "usage: $(basename $0) [<subpath>/]<git-project> {main,main/<codename>,nightly,nightly/<codename>} [<git-checkout>]"; exit 1; }
PREFIX=$(echo `basename $0` | cut -d"-" -f1)
-test -f ~/.buildscripts/$PREFIX.conf && . ~/.buildscripts/$PREFIX.conf || { echo "$0 has no valid context prefix..."; exit -1; }
+test -f ~/.buildscripts/$PREFIX.conf && . ~/.buildscripts/$PREFIX.conf || { echo "$0 has no valid context prefix..."; exit 1; }
NO_DELAY=${NO_DELAY:-"no"}
FORCE_BUILD=${FORCE_BUILD:-"no"}
@@ -76,7 +76,7 @@ set_vars() {
CHECKOUT="${3:-master}"
else
echo "error: no such package component area for this Git project. Aborting..."
- exit -1
+ exit 1
fi
# the DATE might be given as ,,today'' from the command line
[ "x$DATE" = "xtoday" ] && DATE="$(date +%Y%m%d)"