diff options
author | joey <joey> | 1999-08-17 04:37:25 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:37:25 +0000 |
commit | 1c596507129a7022904405114e2bced37ace1cd7 (patch) | |
tree | 544fe77bab29538057a5a186e0512dc5aada7ae4 /dh_lib | |
parent | ffe38a05c38d561ff59df28ed52363cf4b578f9c (diff) | |
download | debhelper-1c596507129a7022904405114e2bced37ace1cd7.tar.gz |
r24: Initial Import
Diffstat (limited to 'dh_lib')
-rw-r--r-- | dh_lib | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -3,17 +3,15 @@ # Run a command, and display the command to stdout if verbose mode is on. # All commands that modifiy files in $TMP should be ran via this # function. -# Unfortunatly, this function doesn't work if your command uses redirection, -# you will have to call verbose_echo by hand then. doit() { - verbose_echo "$*" - $* + verbose_echo "$@" + eval "$@" } # Echo something if the verbose flag is on. verbose_echo() { if [ "$DH_VERBOSE" ]; then - echo " $*" + echo " $@" fi } @@ -68,12 +66,9 @@ autoscript() { fi # Running doit doesn't cut it here. - verbose_echo echo "# Automatically added by `basename $0` on `822-date`" ">>" $autoscript_debscript - echo "# Automatically added by `basename $0` on `822-date`" >> $autoscript_debscript - verbose_echo sed "$autoscript_sed" $autoscript_filename ">>" $autoscript_debscript - sed "$autoscript_sed" $autoscript_filename >> $autoscript_debscript - verbose_echo echo "# End automatically added section" ">>" $autoscript_debscript - echo "# End automatically added section" >> $autoscript_debscript + doit "echo \"# Automatically added by `basename $0` on `822-date`\" >> $autoscript_debscript" + doit "sed \"$autoscript_sed\" $autoscript_filename >> $autoscript_debscript" + doit "echo '# End automatically added section' >> $autoscript_debscript" } # Argument processing and global variable initialization is below. |