X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a7cf4273ca0d5e47622bf278b547a4e984afbf4b..28f09b6cf0872f183c3dd6f6737dab1f0a4b6676:/po/makefile diff --git a/po/makefile b/po/makefile index 0916f2373..07dc51c07 100644 --- a/po/makefile +++ b/po/makefile @@ -40,6 +40,9 @@ $(POTFILES) : $(PO)/%.pot : --files-from=$(PO)/POTFILES_$*.in -o $(PO)/domains/$*/c.pot rm -f $(PO)/POTFILES_$*.in $(MSGCOMM) --more-than=0 $(PO)/domains/$*/c.pot $(PO)/domains/$*/sh.pot --output=$@ + # copy into the domain dirs to make rosetta happy + rm -f $(PO)/domains/$*/*.pot + cp $@ $(PO)/domains/$* $(PACKAGE)-all.pot: $(POTFILES) $(MSGCOMM) --more-than=0 $(POTFILES) --output=$@ @@ -64,8 +67,17 @@ 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: +clean/local: update-po rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d # Include the dependencies that are available