X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_compress;h=85cf2c8943b84e1950d58e00565bdf0e0736eb43;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=14dfdb33b2ef383a0fa9d7e8db07ee5523bf2bd0;hpb=0952ac2e9995da8abe149f3e42b3b8d9d2797112;p=debhelper.git diff --git a/dh_compress b/dh_compress index 14dfdb3..85cf2c8 100755 --- a/dh_compress +++ b/dh_compress @@ -24,7 +24,7 @@ to the new files. By default, B compresses files that Debian policy mandates should be compressed, namely all files in F, F, files in F that are larger than 4k in size, -(except the F file, F<.html> and F<.css> files, image files, and files +(except the F file, F<.html> and other web files, image files, and files that appear to be already compressed based on their extensions), and all F files. Plus PCF fonts underneath F @@ -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,15 +108,17 @@ 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" \\ ! -iname "*.tgz" ! -iname "*.z" ! -iname "*.bz2" \\ ! -iname "*-gz" ! -iname "*-z" ! -iname "*_z" \\ ! -iname "*.jar" ! -iname "*.zip" ! -iname "*.css" \\ - ! -iname "*.svg" ! -iname "*.svgz" \\ - ! -name "index.sgml" \\ + ! -iname "*.svg" ! -iname "*.svgz" ! -iname "*.js" \\ + ! -name "index.sgml" ! -name "objects.inv" \\ ! -name "copyright" 2>/dev/null || true; find usr/share/fonts/X11 -type f -name "*.pcf" 2>/dev/null || true; `);