mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-08 22:50:02 +00:00
BUILD: scripts: add a "quiet" mode to publish-release
Option "-q" will make it silent in automatic mode when there is nothing to do.
This commit is contained in:
parent
7ca88159a1
commit
bd6989152f
@ -8,12 +8,13 @@
|
|||||||
# - copies & compresses files, changelog & docs to the final destination
|
# - copies & compresses files, changelog & docs to the final destination
|
||||||
# - shows a listing of the final file
|
# - 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=
|
TARGET_DIR=
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
SAYYES=
|
SAYYES=
|
||||||
BRANCH=
|
BRANCH=
|
||||||
DEVEL=
|
DEVEL=
|
||||||
|
QUIET=
|
||||||
AUTO=
|
AUTO=
|
||||||
NEW=
|
NEW=
|
||||||
DIR=
|
DIR=
|
||||||
@ -29,13 +30,14 @@ err() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
quit() {
|
quit() {
|
||||||
[ "$#" -eq 0 ] || echo "$*"
|
[ "$#" -eq 0 -o -n "$QUIET" ] || echo "$*"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
while [ -n "$1" -a -z "${1##-*}" ]; do
|
while [ -n "$1" -a -z "${1##-*}" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-a) AUTO=1 ; shift ;;
|
-a) AUTO=1 ; shift ;;
|
||||||
|
-q) QUIET=1 ; shift ;;
|
||||||
-y) SAYYES=1 ; shift ;;
|
-y) SAYYES=1 ; shift ;;
|
||||||
-b) BRANCH="$2" ; shift 2 ;;
|
-b) BRANCH="$2" ; shift 2 ;;
|
||||||
-n) NEW="$2" ; shift 2 ;;
|
-n) NEW="$2" ; shift 2 ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user