diff options
Diffstat (limited to 'bin/pbuild.sh')
-rwxr-xr-x | bin/pbuild.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/pbuild.sh b/bin/pbuild.sh index 8dfd12e..a2bc7cb 100755 --- a/bin/pbuild.sh +++ b/bin/pbuild.sh @@ -43,8 +43,8 @@ esac Parameters() { - LONG_OPTIONS="build:,distribution:,interactive,package:,tag:," - OPTIONS="b:,d:,i,p:,t:," + LONG_OPTIONS="auto,build:,distribution:,interactive,package:,tag:," + OPTIONS="a,b:,d:,i,p:,t:," PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options ${OPTIONS} --shell sh -- ${@})" @@ -59,6 +59,11 @@ Parameters() while true do case "${1}" in + -a|--auto) + AUTO="true" + shift 1 + ;; + -b|--build) BUILD="${2}" shift 2 @@ -285,6 +290,12 @@ do fi done + case "${AUTO}" in + true) + sudo apt build-dep -y . + ;; + esac + case "${INTERACTIVE}" in true) echo "${PROGRAM}: WAITING... " |