X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/e841f4962276f94421669cba3ca613c7731ffa14..8e96e47fa4db36c4e3bb6da6cfee685ff6a4aa76:/po/makefile diff --git a/po/makefile b/po/makefile index 3c29a8031..bb8118c77 100644 --- a/po/makefile +++ b/po/makefile @@ -60,9 +60,18 @@ $(MOFILES) : $(PO_DOMAINS)/%.mo : $(PO_DOMAINS)/%.po cp $@ $(LOCALE)/$(notdir $*)/LC_MESSAGES/$(call GETDOMAIN,$*).mo stats: - for i in *.po; do echo -n "$$i: "; msgfmt --statistics $$i; done - -binary: $(POTFILES) $(PO)/$(PACKAGE)-all.pot $(MOFILES) + for i in *.pot *.po; do echo -n "$$i: "; msgfmt --statistics $$i; done + +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: