diff options
Diffstat (limited to 'bin/quilt.in')
-rw-r--r-- | bin/quilt.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/quilt.in b/bin/quilt.in index 5ef8648..7211002 100644 --- a/bin/quilt.in +++ b/bin/quilt.in @@ -150,6 +150,19 @@ set -- "${args[@]}" unset args export QUILT_COMMAND="${command##*/}" + +if [ -e "$QUILTRC" ] +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" + eval set -- ${!args} \"\$@\" + unset args +fi + bash $BASH_OPTS -c ". $QUILT_DIR/$command" "quilt ${command##*/}" "$@" ### Local Variables: ### mode: shell-script |