diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-01-31 14:34:51 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-01-31 14:34:51 -0500 |
commit | 67e051e9c48096391f1e070c7190a11f09c28d2c (patch) | |
tree | bb24a7bb282a0bf9a6519d3c443c7b58ae337a3d /dh_compress | |
parent | bd99b307fbdd8f1b2047ece93e4c63fa6c7bd841 (diff) | |
download | debhelper-67e051e9c48096391f1e070c7190a11f09c28d2c.tar.gz |
dh_compress: Avoid compressing images in /usr/share/info. Closes: #567586
Diffstat (limited to 'dh_compress')
-rwxr-xr-x | dh_compress | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dh_compress b/dh_compress index efeca8ac..9db01e40 100755 --- a/dh_compress +++ b/dh_compress @@ -102,7 +102,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # complete list of such extensions: ".gz", ".z", ".taz", # ".tgz", "-gz", "-z", "_z" push @files, split(/\n/,` - find usr/info usr/share/info usr/man usr/share/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null || true; + find usr/info usr/share/info usr/man usr/share/man usr/X11*/man -type f ! -iname "*.gz" \\ + ! -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*" \\) \\ \\( -name changelog.html -or ! -iname "*.htm*" \\) \\ ! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\ |