summaryrefslogtreecommitdiffstats
path: root/perl-install/share
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-07-18 19:16:10 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-07-18 19:16:10 +0000
commit61e87a9fb56f97ae843557511ba3609f9849cc2e (patch)
tree3811c6f36e19376dd92bfc5536ab52f5bb6e2c47 /perl-install/share
parentdeddef1f4746139ed4ef994d8f053bf39d4d6384 (diff)
downloaddrakx-backup-do-not-use-61e87a9fb56f97ae843557511ba3609f9849cc2e.tar
drakx-backup-do-not-use-61e87a9fb56f97ae843557511ba3609f9849cc2e.tar.gz
drakx-backup-do-not-use-61e87a9fb56f97ae843557511ba3609f9849cc2e.tar.bz2
drakx-backup-do-not-use-61e87a9fb56f97ae843557511ba3609f9849cc2e.tar.xz
drakx-backup-do-not-use-61e87a9fb56f97ae843557511ba3609f9849cc2e.zip
*** empty log message ***
Diffstat (limited to 'perl-install/share')
-rw-r--r--perl-install/share/po/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile
new file mode 100644
index 000000000..6743ddaf9
--- /dev/null
+++ b/perl-install/share/po/Makefile
@@ -0,0 +1,21 @@
+PMSFILES = $(shell find .. -name "*.pm")
+POFILES = $(wildcard *.po)
+FROMPOFILES = $(POFILES:%.po=%.pm)
+
+all: $(FROMPOFILES)
+
+clean:
+ rm -f $(FROMPOFILES)
+
+$(FROMPOFILES): %.pm: %.po
+ ./po2perl < $< > $@
+
+%.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
+
+FORCE: \ No newline at end of file