summaryrefslogtreecommitdiff
path: root/dh_compress
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:51:17 +0000
committerjoey <joey>1999-08-17 04:51:17 +0000
commit473b811394da493f2643d196d3ea2316b6ea034f (patch)
treeebf14354e3a2cd136fb56fbaad09f25aff394eca /dh_compress
parentfa0b6b8309672b44488dfef0891de99ef6f09d30 (diff)
downloaddebhelper-473b811394da493f2643d196d3ea2316b6ea034f.tar.gz
r86: Initial Import
Diffstat (limited to 'dh_compress')
-rwxr-xr-xdh_compress11
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