From 96369fe3fe84dcbf3958996e50ad360512cb2c1f Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 9 Jul 2013 18:15:22 +0200 Subject: [mltk] add '-a' option for non-interactive mode --- mltk | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mltk b/mltk index 1e554824..44c8b54a 100755 --- a/mltk +++ b/mltk @@ -27,15 +27,10 @@ for i in $DEVTOOLS; do which "$i" 2>/dev/null 1>&2 || { echo "Essential development tool $i not found - exiting."; exit 1; } done -# AUTO_UPDATE_KERNEL flag to rebuild kernel if a new version is detected -AUTO_UPDATE_KERNEL=1 - # Make apt-get install non-interactive when it comes to postinstall questions # ie. kdm asking which dm you want to set as default export DEBIAN_FRONTEND=noninteractive - - qnd_exit() { unset_quiet kill "$MLTK_PID" @@ -223,6 +218,13 @@ read_params() { fi continue ;; + -a) + if [ "$MODE" == "REMOTE" ]; then + [ "x" != "x$1" ] && perror "'-a' accepts no parameters. Given: $1" + REMOTE_AUTOMATIC_BUILD="1" + fi + continue + ;; *) pwarning "Unknown flag to target: $PARAM" print_usage @@ -271,6 +273,7 @@ REMOTE_CLEAN="0" REMOTE_BUILD="0" REMOTE_LIST_CLEAN="" REMOTE_LIST_BUILD="" +REMOTE_AUTOMATIC_BUILD=0 initial_checks read_params $@ -- cgit v1.2.3-55-g7522