From 4064870b59e87f01460e583687beb97b5a00f3a6 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Wed, 5 Jul 2017 08:22:19 +0000 Subject: dh_installman: Fix regression with -P/dir Fixes: f9999ffaa5995ebef7cc9c5dc1dc7efc10bb5604 Signed-off-by: Niels Thykier --- dh_installman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dh_installman') 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); -- cgit v1.2.3