diff options
author | Niels Thykier <niels@thykier.net> | 2017-07-15 14:49:01 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-07-22 17:29:38 +0000 |
commit | 1b9853af02064d0ad29f6b602652bab8b1157f53 (patch) | |
tree | 729dfd0dbed0db6dab46c77bbd19dce852298a74 | |
parent | 99a07068640f57cbab2a88511c221802d505b19e (diff) | |
download | debhelper-1b9853af02064d0ad29f6b602652bab8b1157f53.tar.gz |
dh_installman: Pass -l to man when recoding
It saves having man(1) consider the system collection.
Thanks: Colin Watson <cjwatson@debian.org>
Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | dh_installman | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 6b3cdfd9..1beaa02e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -25,6 +25,7 @@ debhelper (10.7) UNRELEASED; urgency=medium substituting into the snippet. This variant (like the subroutine variant) avoids forking a lot of subprocesses and need not worry about a shell possible interpreting metacharacters. + * dh_installman: Pass "-l" to man when recoding the manpages. -- Niels Thykier <niels@thykier.net> Sat, 15 Jul 2017 09:42:32 +0000 diff --git a/dh_installman b/dh_installman index a78f8c59..704dbbc3 100755 --- a/dh_installman +++ b/dh_installman @@ -295,7 +295,7 @@ if (defined `man --version`) { for my $manpage (@_) { my $manpage_tmp = "${manpage}.dh-new"; my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}"; - doit({ stdout => $manpage_tmp }, 'man', '--recode', 'UTF-8', $manpage_cmd); + doit({ stdout => $manpage_tmp }, 'man', '-l', '--recode', 'UTF-8', $manpage_cmd); # recode uncompresses compressed pages my $orig = $manpage; rm_files($orig) if $manpage =~ s/\.(gz|Z)$//; |