From a09af697f1e8981beb08bb54addd2914173330c6 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 24 Oct 2019 19:18:55 +0000 Subject: dh_installman: Correctly handle compressed manpages w. man-recode Signed-off-by: Niels Thykier --- dh_installman | 1 + 1 file changed, 1 insertion(+) (limited to 'dh_installman') 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); -- cgit v1.2.3