From: Willy Tarreau Date: Fri, 9 Jun 2017 13:57:31 +0000 (+0200) Subject: BUILD: scripts: add a "quiet" mode to publish-release X-Git-Tag: v1.8-dev3~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd6989152f977764f8bafe09e7a0265620da2919;p=thirdparty%2Fhaproxy.git BUILD: scripts: add a "quiet" mode to publish-release Option "-q" will make it silent in automatic mode when there is nothing to do. --- diff --git a/scripts/publish-release b/scripts/publish-release index e2b22303a6..ecef867b92 100755 --- a/scripts/publish-release +++ b/scripts/publish-release @@ -8,12 +8,13 @@ # - copies & compresses files, changelog & docs to the final destination # - shows a listing of the final file -USAGE="Usage: ${0##*/} [-a] [-y] [-b branch] [-n newver] DIR" +USAGE="Usage: ${0##*/} [-a] [-q] [-y] [-b branch] [-n newver] DIR" TARGET_DIR= OUTPUT= SAYYES= BRANCH= DEVEL= +QUIET= AUTO= NEW= DIR= @@ -29,13 +30,14 @@ err() { } quit() { - [ "$#" -eq 0 ] || echo "$*" + [ "$#" -eq 0 -o -n "$QUIET" ] || echo "$*" exit 0 } while [ -n "$1" -a -z "${1##-*}" ]; do case "$1" in -a) AUTO=1 ; shift ;; + -q) QUIET=1 ; shift ;; -y) SAYYES=1 ; shift ;; -b) BRANCH="$2" ; shift 2 ;; -n) NEW="$2" ; shift 2 ;;