From 6e175e978d62cfd31dca82686ec734ff8dc21c2d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 9 Sep 2001 19:57:59 +0000 Subject: xml help handling/enhancing for multi-langs --- perl-install/share/po/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'perl-install/share/po/Makefile') diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile index 1d1a2d4ef..1c9e24f6f 100644 --- a/perl-install/share/po/Makefile +++ b/perl-install/share/po/Makefile @@ -10,11 +10,12 @@ LANGS = $(POFILES:%.po=%) LOCALEDIR=$(DATADIR)/locale -all: $(MOFILES) +all: help $(MOFILES) help: - wget -q -O drakx-help.xml "http://www.mandrakelinux.com/cgi-bin/cvsweb.cgi/~checkout~/doc/manual/literal/drakx/en/drakx-help.xml?rev=1&content-type=text/plain" - ./help_xml2pm.pl drakx-help.xml | LC_ALL=fr iconv -f utf8 -t ascii//TRANSLIT > ../../help.pm + cvs co doc/manual/{entities,literal/drakx} + rm -rf doc/CVS + ./help_xml2pm.pl %.mo: %.po msgfmt -o $@ $< @@ -24,7 +25,7 @@ $(PMSCFILES): %_.c: % $(POFILES): DrakX.pot cp -f $@ $@t - msgmerge $@t $< > $@ + if [ -e help-$@ ]; then msgmerge -C help-$@ $@t $< > $@; else msgmerge $@t $< > $@; fi rm $@t DrakX.pot: $(PMSFILES) @@ -40,7 +41,7 @@ install: done clean: - rm -f drakx-help.xml empty.po tmp.* messages tmp.pot *.mo $(POFILES:%=%t) $(PMSCFILES) + rm -rf drakx-help.xml doc empty.po tmp.* messages tmp.pot *.mo $(POFILES:%=%t) $(PMSCFILES) check: @grep -F '$$' DrakX.pot && { echo "bad translation strings (contains \$$) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; exit 1; } ||: -- cgit v1.2.1