summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-10-24 19:18:55 +0000
committerNiels Thykier <niels@thykier.net>2019-10-24 19:19:10 +0000
commita09af697f1e8981beb08bb54addd2914173330c6 (patch)
tree7b8c0fdf137dbb9531c87d02e66bba5feb820ef7 /dh_installman
parent8ef91ab5ac04c3856539556cc4623de37bba8002 (diff)
downloaddebhelper-a09af697f1e8981beb08bb54addd2914173330c6.tar.gz
dh_installman: Correctly handle compressed manpages w. man-recode
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman1
1 files changed, 1 insertions, 0 deletions
diff --git a/dh_installman b/dh_installman
index 0ec9996e..3a5b5c68 100755
--- a/dh_installman
+++ b/dh_installman
@@ -368,6 +368,7 @@ sub reencode_manpages {
}
for my $manpage (@manpages) {
my $manpage_tmp = "${manpage}.dh-new";
+ $manpage_tmp =~ s/\.(gz|Z)\.dh-new$/.dh-new/;
if (not $has_man_recode) {
my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}";
doit({ stdout => $manpage_tmp }, 'man', '-l', '--recode', 'UTF-8', $manpage_cmd);