Update of /cvsroot/subproc/subproc/po
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2890
Modified Files:
Makefile
Log Message:
Improved the pot catalog format.
Index: Makefile
===================================================================
RCS file: /cvsroot/subproc/subproc/po/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile 19 Jul 2006 22:43:09 -0000 1.1
+++ Makefile 22 Jul 2006 08:50:03 -0000 1.2
@@ -2,9 +2,11 @@
#
# Convert the po files to mo
+PACKAGE=subproc
+
%.mo: %.po
# msgfmt --statistics -o en_US/LC_MESSAGES/subproc.mo $<
- msgfmt --statistics -o $@ $<
+ msgfmt --check --statistics -o $@ $<
../messages/en_US/LC_MESSAGES/subproc.mo: ro_RO.po
msgfmt --statistics -o $@ $<
@@ -13,6 +15,9 @@
msgmerge --update $@ $<
subproc.pot: ../subproc
- gawk --gen-po -f $< > $@
+ cat header.pot | \
+ sed "/POT-Creation-Date:/s/DATE/`date "+%Y-%m-%d %H:%M%z"`/g" | \
+ sed "/Project-Id-Version:/s/PACKAGE/$(PACKAGE)/g" > $@
+ gawk --gen-po -f $< | msguniq >> $@
# vim: set ft=make nowrap nu:
|