[MeeGo-dev] [PATCH] kernel-source: sequence_patch fixes & enhancements
Ameya Palande
ameya.palande at nokia.com
Fri Jun 11 05:43:44 PDT 2010
1. Remove -q, QUIET, symbol and EXTRA_SYMBOL options.
2. Use -f instead of -F for fuzz to maintain consistency
3. Introduce --verbose and (-q) short option for --quilt.
4. Reformat Usage information.
Signed-off-by: Ameya Palande <ameya.palande at nokia.com>
---
scripts/sequence-patch.sh | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/scripts/sequence-patch.sh b/scripts/sequence-patch.sh
index 834ba38..7689dfa 100755
--- a/scripts/sequence-patch.sh
+++ b/scripts/sequence-patch.sh
@@ -26,14 +26,18 @@ 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 -o :vd:f:q --long verbose,dir:,fuzz:,quilt -- "$@")
if [ $? -ne 0 ]
then
@@ -43,25 +47,21 @@ 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)
SCRATCH_AREA=$2
shift
;;
- -F|--fuzz)
+ -f|--fuzz)
fuzz="-F$2"
shift
;;
--
1.7.0.4
More information about the MeeGo-dev
mailing list