diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-01-29 04:14:51 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-01-29 04:14:51 +0100 |
commit | 73009d54fe2ff297e9694a84e05dd7bc591f69d0 (patch) | |
tree | 14019579069b6051d113d1455984e496b093b403 /bin/build-deb-package | |
parent | 4785a98e9996c30d29f7db9f5503742824bed782 (diff) | |
download | buildscripts-73009d54fe2ff297e9694a84e05dd7bc591f69d0.tar.gz buildscripts-73009d54fe2ff297e9694a84e05dd7bc591f69d0.tar.bz2 buildscripts-73009d54fe2ff297e9694a84e05dd7bc591f69d0.zip |
bin/build-{deb,nsis}-package: add NO_DELAY option and logic copied over from bin/build-rpm-package.
Diffstat (limited to 'bin/build-deb-package')
-rwxr-xr-x | bin/build-deb-package | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package index ba6ce14..38bb18b 100755 --- a/bin/build-deb-package +++ b/bin/build-deb-package @@ -41,6 +41,7 @@ test -z $1 && { echo "usage: $(basename $0) [<subpath>/]<git-project> {main,main PREFIX=$(echo `basename $0` | cut -d"-" -f1) 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"} DEB_BUILD_FOR=${DEB_BUILD_FOR:-"debian:$DEBIAN_DISTROS ubuntu:$UBUNTU_DISTROS"} @@ -346,7 +347,7 @@ set_vars $@ && { if [ "x$(basename $0)" = "x$PREFIX-build-deb-package" ] || [ "x$(basename $0)" = "x$PREFIX-build+upload-deb-package" ]; then # Treat any value other than "no" and "0" as true. cd $PROJECT_DIR && pkgneedsbuild $CHECKOUT || ( [ "x$FORCE_BUILD" != "xno" ] && [ "x$FORCE_BUILD" != "x0" ] ) && { - if [ "x$FORCE_BUILD" != "xno" ] && [ "x$FORCE_BUILD" != "x0" ]; then + if [ "x$FORCE_BUILD" != "xno" ] && [ "x$FORCE_BUILD" != "x0" ] && [ "x$NO_DELAY" != "xno" ] && [ "x$NO_DELAY" != "x0" ]; then delay_build fi lock_workspace |