diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2004-07-01 21:50:11 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2004-07-01 21:50:11 +0000 |
commit | 162d238c1d40b6e6eace4396f9ac7cf91685fa30 (patch) | |
tree | 488669251869e54b0e0a531fb0de18a7547c580b /scripts | |
parent | 9090e9b67f52ae9b11358639b7a5d82da777aba6 (diff) | |
download | quilt-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.in | 6 |
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() |