]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installman
Fix typo in French translation, about debian/package.README.Debian files.
[debhelper.git] / dh_installman
index 78e82ea22ebdfc5b901a4424e6678b4be9d03e0c..f0ff2245af48968f7872093d3ca74109416da544 100755 (executable)
@@ -196,10 +196,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        foreach my $dir (qw{usr/share/man usr/X11R6/man}) {
                if (-e "$tmp/$dir") {
                        find(sub {
-                               return unless -f $_;
-                               complex_doit "man --recode UTF-8 ./\Q$_\E > \Q$_.new\E";
-                               doit "chmod",644,"$_.new";
-                               doit "mv","-f","$_.new",$_;
+                               return if ! -f $_ || -l $_;
+                               my ($tmp, $orig)=($_.".new", $_);
+                               complex_doit "man --recode UTF-8 ./\Q$orig\E > \Q$tmp\E";
+                               # recode uncompresses compressed pages
+                               doit "rm", "-f", $orig if s/\.(gz|Z)$//;
+                               doit "chmod", 644, $tmp;
+                               doit "mv", "-f", $tmp, $_;
                        }, "$tmp/$dir");
                }
        }