summaryrefslogtreecommitdiff
path: root/dh_compress
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-31 14:34:51 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-31 14:34:51 -0500
commit67e051e9c48096391f1e070c7190a11f09c28d2c (patch)
treebb24a7bb282a0bf9a6519d3c443c7b58ae337a3d /dh_compress
parentbd99b307fbdd8f1b2047ece93e4c63fa6c7bd841 (diff)
dh_compress: Avoid compressing images in /usr/share/info. Closes: #567586
Diffstat (limited to 'dh_compress')
-rwxr-xr-xdh_compress5
1 files changed, 4 insertions, 1 deletions
diff --git a/dh_compress b/dh_compress
index efeca8a..9db01e4 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" \\