]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installman
r1626: * Add the Spanish manpages I missed last time. Closes: #218718
[debhelper.git] / dh_installman
index 24c5c0418ffd44516afd95b920a7767b93b592f5..3d03d2642eb2798d1197159e8d195db92f7aaa7d 100755 (executable)
@@ -181,7 +181,12 @@ sub find_so_man {
        }
 
        # Test first line of file for the .so thing.
-       open (SOTEST,$_) || die "$_: $!";
+       if (/\.gz$/) {
+               open (SOTEST, "zcat $_|") or die "$_: $!";
+       }
+       else {
+               open (SOTEST,$_) || die "$_: $!";
+       }
        my $l=<SOTEST>;
        close SOTEST;
        if ($l=~m/\.so\s+(.*)\s*/) {