summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-09 19:57:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-09 19:57:59 +0000
commit6e175e978d62cfd31dca82686ec734ff8dc21c2d (patch)
tree83bb7b247cf2cd1441ea538b49aba6c57989f489 /perl-install/share/po/Makefile
parentaf6b243fec2ad4d808d3c4c8e4a61d2639d6ef6e (diff)
downloaddrakx-6e175e978d62cfd31dca82686ec734ff8dc21c2d.tar
drakx-6e175e978d62cfd31dca82686ec734ff8dc21c2d.tar.gz
drakx-6e175e978d62cfd31dca82686ec734ff8dc21c2d.tar.bz2
drakx-6e175e978d62cfd31dca82686ec734ff8dc21c2d.tar.xz
drakx-6e175e978d62cfd31dca82686ec734ff8dc21c2d.zip
xml help handling/enhancing for multi-langs
Diffstat (limited to 'perl-install/share/po/Makefile')
-rw-r--r--perl-install/share/po/Makefile11
1 files changed, 6 insertions, 5 deletions
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; } ||: