X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/5e9e7146d4fc4c365cf673a6458f9cfc0f9f801b..fa56bcf3eb3750665d37cb15a3dbff922d706c36:/bin/mdw-sbuild-server diff --git a/bin/mdw-sbuild-server b/bin/mdw-sbuild-server index 7bb2e46..e4c919f 100755 --- a/bin/mdw-sbuild-server +++ b/bin/mdw-sbuild-server @@ -41,7 +41,7 @@ done prog=${0##*/} fail () { echo >&2 "$prog: $*"; exit 1; } -usage () { echo "usage: $prog [-ain] [-t TARGET] COMMAND [ARGUMENTS ...]"; } +usage () { echo "usage: $prog [-aiknT] [-t TARGET] [-A DBPARGS] COMMAND [ARGUMENTS ...]"; } fail_usage () { usage >&2; exit 1; } want_1 () { @@ -59,7 +59,7 @@ want_1 () { run () { case $notreally in t) echo "+ $*" ;; - nil) "$@" ;; + nil) nice "$@" ;; esac } @@ -76,7 +76,7 @@ decor () { bogusp=nil archp=nil indepp=nil keepon=nil notreally=nil unset targets dbpargs -while getopts "haint:A:" opt; do +while getopts "haint:A:T" opt; do case $opt in h) usage @@ -90,6 +90,7 @@ Options: -n Don't actually do the build. -t TARGET Build in TARGET build environment. -A ARGS Pass ARGS to \`dpkg-buildpackage'. + -T Don't run the tests. Commands available: @@ -110,6 +111,12 @@ EOF n) notreally=t ;; t) targets="${targets+$targets }$OPTARG" ;; A) dbpargs="${dbpargs+$dbpargs }$OPTARG" ;; + T) + case " $DEB_BUILD_OPTIONS " in + *" nocheck "*) ;; + *) DEB_BUILD_OPTIONS=${DEB_BUILD_OPTIONS+"$DEB_BUILD_OPTIONS "} nocheck ;; + esac + ;; *) bogusp=nil ;; esac done @@ -289,7 +296,7 @@ case "$#,$1" in exec 3>&1 thisrc=$( { { { { set +e - run sbuild --extra-package=$pkgs.$target \ + run sbuild --extra-package=pkgs.$target \ --dist=$suite --build=$host --host=$target \ --chroot=$suite-$host --verbose $buildopt $dsc \ ${dbpargs+--debbuildopts="$dbpargs"} \