po update snippet
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 3 May 2004 13:36:45 +0000 (13:36 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 3 May 2004 13:36:45 +0000 (13:36 +0000)
Original commit message from CVS:
po update snippet

ChangeLog
po.mak [new file with mode: 0644]

index c8acb0a..91002f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-03  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * po.mak:
+          snippet for updating .po files
+
 2004-03-18  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * Makefile.am:
diff --git a/po.mak b/po.mak
new file mode 100644 (file)
index 0000000..14604d0
--- /dev/null
+++ b/po.mak
@@ -0,0 +1,18 @@
+# rule to download .po
+po / %.po - download:
+@LI = $ (@: po / %.po - download = %) && cd po && wget - q - O $$LI.po.tmp http:
+                                                                                //www.iro.umontreal.ca/translation/maint/$(PACKAGE)/$$LI && if ! diff $$LI.po $$LI.po.tmp > /dev/null 2>&1; then echo "$$LI.po changed, updated"; mv $$LI.po.tmp $$LI.po; else rm $$LI.po.tmp; fi
+
+# a rule to redownload po files
+download - po:
+for LI
+  in ` cat po / LINGUAS `;
+do
+  echo Checking $$LI.po;
+     make
+         po /
+         $$LI.
+         po -
+         download;
+
+done