summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po/Makefile
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2000-11-08 00:01:16 +0000
committerMystery Man <unknown@mandriva.org>2000-11-08 00:01:16 +0000
commitd5c526273db473a7d87a26000585900fc10dda7d (patch)
tree0fdaabe7a00921b6cc556601b103d344fc7ac781 /perl-install/share/po/Makefile
parent9c164312d4bfff6d93e1c4529de6b992f2bebc44 (diff)
downloaddrakx-d5c526273db473a7d87a26000585900fc10dda7d.tar
drakx-d5c526273db473a7d87a26000585900fc10dda7d.tar.gz
drakx-d5c526273db473a7d87a26000585900fc10dda7d.tar.bz2
drakx-d5c526273db473a7d87a26000585900fc10dda7d.tar.xz
drakx-d5c526273db473a7d87a26000585900fc10dda7d.zip
This commit was manufactured by cvs2svn to create branch
'unlabeled-1.1.1'.
Diffstat (limited to 'perl-install/share/po/Makefile')
-rw-r--r--perl-install/share/po/Makefile38
1 files changed, 15 insertions, 23 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile
index b3bcca104..6743ddaf9 100644
--- a/perl-install/share/po/Makefile
+++ b/perl-install/share/po/Makefile
@@ -1,29 +1,21 @@
-include ../../Makefile.config
+PMSFILES = $(shell find .. -name "*.pm")
+POFILES = $(wildcard *.po)
+FROMPOFILES = $(POFILES:%.po=%.pm)
-PMSFILES = $(wildcard $(PMS:%=../../%))
-PMSCFILES = $(PMSFILES:%=%_.c)
-POFILES = $(shell ls *.po)
-
-all: $(POFILES)
+all: $(FROMPOFILES)
clean:
- rm -f empty.po messages $(POFILES:%=%t) $(PMSCFILES)
-
-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
-
-$(POFILES): DrakX.pot
- cp -f $@ $@t
- msgmerge $@t $< > $@
- rm $@t
+ rm -f $(FROMPOFILES)
-DrakX.pot: $(PMSFILES)
- $(MAKE) $(PMSCFILES);
- xgettext -F -n --add-comments='-PO' --keyword=_ --keyword=__ -o $@ $(PMSCFILES)
- rm $(PMSCFILES)
+$(FROMPOFILES): %.pm: %.po
+ ./po2perl < $< > $@
-$(PMSCFILES): %_.c: %
- perl -pe 's|^(__?\()| $$1|; s|#([^+].*)|/*\1*\/|; s|$$|\\n\\|' $< > $@
+%.po: $(PMSFILES)
+ touch $@
+ for i in $(PMSFILES); do \
+ sed -e 's/#\(.*\)/\/*\1*\//' -e 's/$$/\\n\\/' < $$i > $${i}c; \
+ xgettext -j -F -Lc -n --omit-header --keyword=_ --keyword=__ -o $@ $${i}c; \
+ rm $${i}c; \
+ done
-# 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] ] } <>'
+FORCE: \ No newline at end of file