diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-21 17:17:17 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-21 17:17:17 +0000 |
commit | 0793b180513297e2a6cfc600871c00b56b3358b0 (patch) | |
tree | 53fe14cebd935d9b341e1185fd8486ea5ec40799 | |
parent | 7c592dad857c64a2d7b047dd0db5e88062947fde (diff) | |
download | urpmi-0793b180513297e2a6cfc600871c00b56b3358b0.tar urpmi-0793b180513297e2a6cfc600871c00b56b3358b0.tar.gz urpmi-0793b180513297e2a6cfc600871c00b56b3358b0.tar.bz2 urpmi-0793b180513297e2a6cfc600871c00b56b3358b0.tar.xz urpmi-0793b180513297e2a6cfc600871c00b56b3358b0.zip |
Tweak the localized manpage installation process, so we can have different names for man pages in different languages
-rw-r--r-- | Makefile.PL | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |