summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman7
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_installman b/dh_installman
index 24c5c04..3d03d26 100755
--- a/dh_installman
+++ b/dh_installman
@@ -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*/) {