From 0793b180513297e2a6cfc600871c00b56b3358b0 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 21 Mar 2006 17:17:17 +0000 Subject: Tweak the localized manpage installation process, so we can have different names for man pages in different languages --- Makefile.PL | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 5cf5506d..21ee3442 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -80,8 +80,11 @@ sub manifypods { #- TODO repartition of man pages in sections by pod2man is incorrect #- TODO as more languages are added adapt the following quick hack if ($with_po) { - $inherited =~ s/(INST_MAN(\d)DIR\)\/)\bfr\b/$1..\/fr\/man$2/g; - $inherited =~ s/\t\$/\t\$(NOECHO) \$(MKPATH) \$(INST_MAN8DIR)\/..\/fr\/man8\n$&/; + my $lang = 'fr'; + # make fr man directory + $inherited =~ s/\t\$/\t\$(NOECHO) \$(MKPATH) \$(INST_MAN8DIR)\/..\/$lang\/man8\n$&/; + # install fr manpages in correct path + $inherited =~ s{(INST_MAN(\d)DIR\)/)$lang(\/\S+)(\.$lang)?\.\2}{$1../$lang/man$2$3.$2}g; } $inherited; } -- cgit v1.2.1