]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_compress
Typo. Closes: #653339
[debhelper.git] / dh_compress
index 14dfdb33b2ef383a0fa9d7e8db07ee5523bf2bd0..ff98cb9de6d9c99785b8f41229708f7485fdb259 100755 (executable)
@@ -24,7 +24,7 @@ to the new files.
 By default, B<dh_compress> compresses files that Debian policy mandates should
 be compressed, namely all files in F<usr/share/info>, F<usr/share/man>,
 files in F<usr/share/doc> that are larger than 4k in size,
-(except the F<copyright> file, F<.html> and F<.css> files, image files, and files
+(except the F<copyright> file, F<.html> and other web files, image files, and files
 that appear to be already compressed based on their extensions), and all
 F<changelog> files. Plus PCF fonts underneath F<usr/share/fonts/X11/>
 
@@ -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;
                `);