]> git.saurik.com Git - apt.git/commitdiff
Add update-po from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:01:01 +0000 (17:01 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:01:01 +0000 (17:01 +0000)
Author: jgg
Date: 2003-02-19 06:51:18 GMT
Add update-po from Ralf Corsepius <corsepiu@faw.uni-ulm.de>

po/makefile

index 0916f23738550d036156fb7b70e8925e45d51882..bb8118c779aaf03ec51b474ed3c1a4b0140b2750 100644 (file)
@@ -64,6 +64,15 @@ stats:
 
 binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES)
 
+.PHONY: update-po
+update-po: $(PACKAGE)-all.pot
+       for lang in ${LINGUAS}; do\
+       echo "Updating $$lang.po"; \
+       $(MSGMERGE) $$lang.po $(PACKAGE)-all.pot -o $$lang.new.po; \
+       cmp $$lang.new.po $$lang.po || cp $$lang.new.po $$lang.po; \
+       rm -f $$lang.new.po; \
+       done
+
 clean: clean/local
 clean/local:
        rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d