diff options
author | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
commit | c20b84a8b572951b48049234f632f4f1dd7c978f (patch) | |
tree | 492e9ef624cee574ecd82c836aeb4b0b05915e6b /perl-install/share/po/Makefile | |
parent | 127a73d935d78af53d3dadd05d4636f6b717976d (diff) | |
download | drakx-c20b84a8b572951b48049234f632f4f1dd7c978f.tar drakx-c20b84a8b572951b48049234f632f4f1dd7c978f.tar.gz drakx-c20b84a8b572951b48049234f632f4f1dd7c978f.tar.bz2 drakx-c20b84a8b572951b48049234f632f4f1dd7c978f.tar.xz drakx-c20b84a8b572951b48049234f632f4f1dd7c978f.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_8_12mdk'.V1_1_8_12mdk
Diffstat (limited to 'perl-install/share/po/Makefile')
-rw-r--r-- | perl-install/share/po/Makefile | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile deleted file mode 100644 index 6487cc3b6..000000000 --- a/perl-install/share/po/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -include ../../Makefile.config - -PMSFILES = $(wildcard $(ALLPMS:%=../../%)) -PMSCFILES = $(PMSFILES:%=%_.c) - -# temporarly don't include ar.po,br.po,cy.po,ga.po,is.po,ro.po,sl.po -# (too low translation percentage) -POFILES = $(shell ls *.po|grep -v '\(ar.po\|ga.po\|is.po\|ro.po\|sl.po\)') - -MOFILES = $(POFILES:%.po=%.mo) -LANGS = $(POFILES:%.po=%) - -LOCALEDIR=$(DATADIR)/locale - - -all: help $(MOFILES) - -help: - @if [ ! -d doc ]; then \ - echo "Checking out doc stuff now ..."; \ - cvs co doc/manual/{entities,literal/drakx}; \ - rm -rf doc/CVS; \ - else \ - echo "Updating doc stuff now ..."; \ - cvs update doc/manual/{entities,literal/drakx}; \ - fi - ./help_xml2pm.pl - -%.mo: %.po - msgfmt -o $@ $< - -$(PMSCFILES): %_.c: % - ./fake_c.pl $< > $@ - -$(POFILES): DrakX.pot - perl -ne 'print unless /^# DO NOT BOTHER TO MODIFY HERE, SEE:|^#.*\Qdrakx-help.xml/ .. /^$$/' $@ > $@t - if [ -e help-$@t ]; then perl -pe 's|^#~ ||' -i $@t ; msgmerge -C $@t help-$@t $< > $@; else msgmerge $@t $< > $@; fi - rm $@t - -DrakX.pot: $(PMSFILES) - $(MAKE) $(PMSCFILES); - xgettext -F -n --add-comments='-PO' --keyword=_ --keyword=__ -o $@ $(PMSCFILES) - rm $(PMSCFILES) - perl i18n_compssUsers 2>/dev/null >> $@ - -install: - for l in $(LANGS); do \ - install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ - install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ - done - -clean: - @rm -rf drakx-help.xml .memdump doc empty.po tmp.* messages tmp.pot *.mo $(POFILES:%=%t) $(PMSCFILES) - -check: - @grep -F '$$' DrakX.pot && { echo "bad translation strings (contains \$$) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; exit 1; } ||: - -verif: - perl -ne '/^\s*#/ or $$i += my @l = /\b__?\(/g; END { print "$$i\n" }' $(PMSFILES) - perl -ne '$$i += my @l = /\.c:/g; END { print "$$i\n" }' DrakX.pot - -verif2: -# perl -I ../.. -Mcommon -e 'foreach (qw($(PMSFILES))) { printf "package foo%d;\n", ++$$i; print common::cat_($$_) }' | perl -ne 'print if !/use (diagnostics|vars|strict)/' | OUTFILE=tmp.pm perl -I. -I../.. -Mb_dump_strings >/dev/null 2>/dev/null - perl -pe 's|$$|\\n\\|' tmp.pm > tmp.pm_.c - xgettext --keyword=_ -o tmp.po tmp.pm_.c - msgmerge DrakX.pot tmp.po > tmp.pot - grep "^msgid" tmp.pot | sort > tmp.pot.light - grep "^msgid" DrakX.pot | sort | diff - tmp.pot.light | grep "^>" || true - - -# for i in *.po; do echo -n "$i "; msgfmt -v $i 2>&1; done | perl -e 'print map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [ $_, (split)[1] ] } <>' - - -%: %.sh - # fake built-in |