po: Add po-update rule for updating all translations.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Dec 2016 21:29:57 +0000 (13:29 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Dec 2016 21:29:57 +0000 (13:29 -0800)
po/automake.mk

index 98f9685313533c8a317c4f80ebcd755476378387..0f856286d3a8dbbd6f51a758cc65d84fdc6c3d15 100644 (file)
@@ -94,3 +94,11 @@ po_CLEAN:
                rm -f $(POFILES); \
        fi
 CLEAN_LOCAL += po_CLEAN
+
+WGET = wget
+po-update:
+       cd $(srcdir) && rm -f $(POFILES)
+       cd $(srcdir)/po && \
+       for po in `echo '$(POFILES)' | sed 's,po/,,g'`; do \
+          $(WGET) https://translationproject.org/latest/pspp/$$po; \
+        done