diff options
Diffstat (limited to 'dh_installman')
-rwxr-xr-x | dh_installman | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installman b/dh_installman index 4089d1d6..ead17526 100755 --- a/dh_installman +++ b/dh_installman @@ -291,7 +291,8 @@ if (defined `man --version`) { on_items_in_parallel(\@manpages_to_reencode, sub { for my $manpage (@_) { my $manpage_tmp = "${manpage}.dh-new"; - complex_doit "man --recode UTF-8 ./\Q$manpage\E > \Q$manpage_tmp\E"; + my $manpage_cmd = ($manpage =~ m{^/}) ? $manpage : "./${manpage}"; + complex_doit "man --recode UTF-8 \Q${manpage_cmd}\E > \Q$manpage_tmp\E"; # recode uncompresses compressed pages rm_files($manpage) if $manpage =~ s/\.(gz|Z)$//; rename_path($manpage_tmp, $manpage); |