X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_compress;h=85cf2c8943b84e1950d58e00565bdf0e0736eb43;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=3eb6ff24ae7fd8fc5c5ee7ed4f07aee3c832538a;hpb=7bc99d44cfc0275e1b44b390bed1362c457da9ab;p=debhelper.git diff --git a/dh_compress b/dh_compress index 3eb6ff2..85cf2c8 100755 --- a/dh_compress +++ b/dh_compress @@ -99,7 +99,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } else { # Note that all the excludes of odd things like _z - # are because gzip refuses to compress such files, assumming + # are because gzip refuses to compress such files, assuming # they are zip files. I looked at the gzip source to get the # complete list of such extensions: ".gz", ".z", ".taz", # ".tgz", "-gz", "-z", "_z" @@ -108,7 +108,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { ! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\ ! -iname "*.jpeg" \\ 2>/dev/null || true; - find usr/share/doc -type f \\( -size +4k -or -name "changelog*" -or -name "NEWS*" \\) \\ + find usr/share/doc \\ + \\( -type d -name _sources -prune -false \\) -o \\ + -type f \\( -size +4k -or -name "changelog*" -or -name "NEWS*" \\) \\ \\( -name changelog.html -or ! -iname "*.htm*" \\) \\ ! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\ ! -iname "*.jpeg" ! -iname "*.gz" ! -iname "*.taz" \\