1. Remove -q, QUIET, symbol and EXTRA_SYMBOL options. 2. Introduce --verbose and (-q) short option for --quilt. 3. Reformat Usage information.
Signed-off-by: Ameya Palande <[email protected]> --- Changes: v2: Use -F for fuzz as patch command uses the same option. v3: Use "getopt -n" to get rid of "getopt:" string in warning message. scripts/sequence-patch.sh | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/sequence-patch.sh b/scripts/sequence-patch.sh index 5e30c3c..51523ff 100755 --- a/scripts/sequence-patch.sh +++ b/scripts/sequence-patch.sh @@ -26,14 +26,19 @@ source $(dirname $0)/wd-functions.sh fuzz="-F0" usage() { - echo "SYNOPSIS: $0 [-qv] [--symbol=...] [--dir=...] [last-patch-name] [--fuzz=NUM]" + echo "Usage: `basename $0` [OPTION] + -v, --verbose Verbose operation + -d, --dir=DIR Scratch area directory + -F, --fuzz=NUM Maximum fuzz factor for patching + -q, --quilt Use quilt for patch management" exit 1 } # Allow to pass in default arguments via SEQUENCE_PATCH_DEF_ARGS. set -- $SEQUENCE_PATCH_ARGS "$@" -options=$(getopt -o qvd:F: --long quilt,symbol:,dir:,fuzz: -- "$@") +options=$(getopt -n `basename $0` -o vd:F:q \ + --long verbose,dir:,fuzz:,quilt -- "$@") if [ $? -ne 0 ] then @@ -43,18 +48,14 @@ fi eval set -- "$options" QUIET=1 -EXTRA_SYMBOLS= CLEAN=1 while true; do case "$1" in - -q) - QUIET=1 - ;; - -v) + -v|--verbose) QUIET= ;; - --quilt) + -q|--quilt) CLEAN= ;; -d|--dir) -- 1.7.0.4 _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev
