X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fpo%2FGNUmakefile;h=13231ff3b646fa6ab7261896ce2c877f67eaf149;hb=dcb5228b47bca53b191091e090b5338402a5a3b9;hp=925cb7e5a12612e550d771b1c82d4a9d22db0192;hpb=531b723b9b8d70c56f608c56a8bcf54e7621582c;p=lilypond.git diff --git a/Documentation/po/GNUmakefile b/Documentation/po/GNUmakefile index 925cb7e5a1..13231ff3b6 100644 --- a/Documentation/po/GNUmakefile +++ b/Documentation/po/GNUmakefile @@ -6,6 +6,8 @@ include $(depth)/make/stepmake.make doc-localedir=$(outdir) DOMAIN=lilypond-doc +DOC_PO_SOURCES = add_html_footer.py texi-gettext.py +TELY_FILES = $(shell ls $(depth)/Documentation/user/lilypond*.tely) messages: $(MO_FILES) for i in $(CATALOGS); do \ @@ -14,7 +16,11 @@ messages: $(MO_FILES) done po-update: - $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o doc.pot --gettext ../$(depth)/Documentation/user/lilypond.tely + $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely) + $(foreach i, $(DOC_PO_SOURCES), cp $(buildscript-dir)/$(i) $(outdir) &&) true + cd $(outdir) && sed -i -e s/_doc/_/g $(DOC_PO_SOURCES) + cd $(outdir) && xgettext -cjn -L Python -o buildscripts.pot $(DOC_PO_SOURCES) + msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.pot msgmerge -U lilypond-doc.pot $(outdir)/doc.pot for i in $(CATALOGS); do \ msgmerge -U $$i.po lilypond-doc.pot; \