From 9578db97227ea459ca5d033f08f71562ed303f4c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 20 Mar 2006 16:10:40 +0000 Subject: More ugly makefile hacks --- Makefile.PL | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index c41c9f03..5cf5506d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -79,7 +79,10 @@ sub manifypods { my $inherited = shift->SUPER::manifypods(@_); #- TODO repartition of man pages in sections by pod2man is incorrect #- TODO as more languages are added adapt the following quick hack - $with_po and $inherited =~ s/\t\$/\t\$(NOECHO) \$(MKPATH) \$(INST_MAN8DIR)\/fr\n$&/; + 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$&/; + } $inherited; } @@ -90,6 +93,8 @@ sub postamble { installpo: \$(MAKE) -C po install + \$(NOECHO) \$(MOD_INSTALL) \\ + \$(INST_MAN8DIR)\/..\/fr \$(DESTDIR)/usr/share/man/fr installconfigfiles: install -d \$(SYSCONFDIR)/urpmi -- cgit v1.2.1