summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-09-13 20:31:24 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-09-13 20:31:24 +0000
commitdafede41a7fe4230c7c2aec90624ad19a0c7e9b6 (patch)
tree2de92e8c4bf17194ec98722a5ecc53f01fa553d3 /bin
parente97172520202ad70b8bf106eb328ad66895ebb3a (diff)
downloadquilt-dafede41a7fe4230c7c2aec90624ad19a0c7e9b6.tar.gz
- bin/quilt.in: Add optional verbose modifier to --trace option
by request of Dean Roehrich <roehrich@sgi.com>.
Diffstat (limited to 'bin')
-rw-r--r--bin/quilt.in15
1 files changed, 12 insertions, 3 deletions
diff --git a/bin/quilt.in b/bin/quilt.in
index 2e31b93..7a2abfb 100644
--- a/bin/quilt.in
+++ b/bin/quilt.in
@@ -17,7 +17,7 @@ fi
usage()
{
- echo $"Usage: quilt [--trace] [--quiltrc=XX] command [-h] ..."
+ echo $"Usage: quilt [--trace[=verbose]] [--quiltrc=XX] command [-h] ..."
echo $"Commands are:"
quilt_commands \
@@ -68,8 +68,17 @@ do
[ "$QUILTRC" = - ] && unset QUILTRC
shift ;;
# Trace execution of commands
- --trace)
- BASH_OPTS=-x ;;
+ --trace*)
+ BASH_OPTS="${BASH_OPTS:+$BASH_OPTS }-x"
+ case "${1:7}" in
+ '')
+ ;;
+ =verbose)
+ BASH_OPTS="${BASH_OPTS:+$BASH_OPTS }-v" ;;
+ *)
+ command=
+ break ;;
+ esac ;;
*)
args[${#args[@]}]=$1 ;;
esac