diff options
author | joey <joey> | 1999-08-17 04:51:17 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:51:17 +0000 |
commit | 473b811394da493f2643d196d3ea2316b6ea034f (patch) | |
tree | ebf14354e3a2cd136fb56fbaad09f25aff394eca /dh_compress | |
parent | fa0b6b8309672b44488dfef0891de99ef6f09d30 (diff) | |
download | debhelper-473b811394da493f2643d196d3ea2316b6ea034f.tar.gz |
r86: Initial Import
Diffstat (limited to 'dh_compress')
-rwxr-xr-x | dh_compress | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dh_compress b/dh_compress index 1d30c65d..d24a561a 100755 --- a/dh_compress +++ b/dh_compress @@ -16,10 +16,10 @@ filelist () { sh $olddir/$compress 2>/dev/null else # By default fall back on what the policy manual says to compress. - find usr/info usr/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null + find usr/info usr/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null || true find usr/doc -type f \( -size +4k -or -name "changelog*" \) \ ! -name "*.htm*" ! -name "*.gif" ! -name "*.gz" \ - ! -name "copyright" 2>/dev/null + ! -name "copyright" 2>/dev/null || true fi } @@ -39,7 +39,9 @@ for PACKAGE in $DH_DOPACKAGES; do # Run the file name gathering commands from within the directory # structure that will be effected. olddir=`pwd` - doit "cd $TMP" + # Can't use doit here, that breaks --no-act mode. + verbose_echo "cd $TMP" + cd "$TMP" # Get the list of files to compress. if [ "$DH_EXCLUDE_GREP" ]; then @@ -56,7 +58,8 @@ for PACKAGE in $DH_DOPACKAGES; do fi # Change back to old pwd. - doit "cd $olddir" + verbose_echo "cd $olddir" + cd "$olddir" # Fix up symlinks that were pointing to the uncompressed files. for file in `find $TMP -type l`; do |