X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/6451c3f2b450e7803a3c0e3cd3cec00a5b46b3d7..fe33bda7db1db4ae068a147e16ee70625e7844ad:/bin/mdw-sbuild diff --git a/bin/mdw-sbuild b/bin/mdw-sbuild index c32c555..9a9a9d0 100755 --- a/bin/mdw-sbuild +++ b/bin/mdw-sbuild @@ -27,7 +27,7 @@ prog=${0##*/} fail () { echo >&2 "$prog: $*"; exit 1; } -usage () { echo "usage: $prog [-ain] [-k KEYID] [-p DIR] [-t TARGET] [-A DBPARGS] HOST"; } +usage () { echo "usage: $prog [-ainT] [-k KEYID] [-p DIR] [-t TARGET] [-A DBPARGS] HOST"; } fail_usage () { usage >&2; exit 1; } ###-------------------------------------------------------------------------- @@ -35,7 +35,7 @@ fail_usage () { usage >&2; exit 1; } bogusp=nil noactp=nil signp=nil unset buildopts pkgs dbpargs -while getopts "haik:np:t:A:" opt; do +while getopts "haik:np:t:A:T" opt; do case $opt in h) usage @@ -50,6 +50,7 @@ Options: -p DIR Upload additional packages from DIR. -t TARGET Build in TARGET build environment. -A ARGS Pass ARGS to \`dpkg-buildpackage'. + -T Don't run the tests. EOF exit 0 ;; @@ -63,6 +64,7 @@ EOF buildopts="${buildopts+$buildopts }-A$OPTARG" dbpargs="${dbpargs+$dbpargs }$OPTARG" ;; + T) buildopts="${buildopts+$buildopts }-T" ;; *) bogusp=t ;; esac done