summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-07-01 21:50:11 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-07-01 21:50:11 +0000
commit162d238c1d40b6e6eace4396f9ac7cf91685fa30 (patch)
tree488669251869e54b0e0a531fb0de18a7547c580b /scripts
parent9090e9b67f52ae9b11358639b7a5d82da777aba6 (diff)
downloadquilt-162d238c1d40b6e6eace4396f9ac7cf91685fa30.tar.gz
- Allow passing of default options to commands by defining
QUILT_${COMMAND}_ARGS in .quiltrc. This should eventually get us rid of some of the mess in .quiltrc.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 1b47bf4..8a0a3cc 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -21,6 +21,12 @@ then
source "$QUILTRC"
fi
+# Add default arguments for this command
+if [ -n "$QUILT_COMMAND" ]; then
+ args="QUILT_$(echo $QUILT_COMMAND | tr a-z A-Z)_ARGS"
+ set -- ${!args} "$@"
+ unset args
+fi
# Quote a string for use in a basic regular expression.
quote_bre()