dot/screenrc: Add a binding for the `kill' command.
[profile] / bin / mdw-sbuild
index c32c555..9a9a9d0 100755 (executable)
@@ -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