]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Fri, 24 Jul 1998 11:50:52 +0000 (11:50 +0000)
committerfred <fred>
Fri, 24 Jul 1998 11:50:52 +0000 (11:50 +0000)
stepmake/stepmake/Po_rules.make [new file with mode: 0644]

diff --git a/stepmake/stepmake/Po_rules.make b/stepmake/stepmake/Po_rules.make
new file mode 100644 (file)
index 0000000..ccff7a1
--- /dev/null
@@ -0,0 +1,28 @@
+# Porules.make
+
+.SUFFIXES: .po .mo
+
+$(outdir)/%.mo: %.po
+       $(MSGFMT) -o $@ $<
+
+# sed-pofile = sed 's/^. \#: .*//'
+sed-pofile = sed 's/^\#: .*//'
+sed-makestuff = sed 's/[a-zA-Z_/]*make\[[0-9]*\].*//'
+sed-edstuff = sed 's/[ \.,adic0-9]*//' | sed 's/---//' | sort -u
+
+po-update:
+       $(foreach i,$(CATALOGS), \
+         rm -f $(po-dir)/$(outdir)/$(i).po; \
+         tupdate $(po-dir)/$(outdir)/$(package).po $(po-dir)/$(i).po \
+           > $(po-dir)/$(outdir)/$(i).po && ) true
+       $(foreach i,$(CATALOGS), \
+         changes=`$(MAKE) --silent -C $(po-dir) LANGUAGE=$$i show-po-changes $(ERROR_LOG) | $(sed-makestuff)`; \
+         if test "$$changes" != "" ; then \
+           echo "*** Changes for language $$i; check po/$(outdir)/$$i.po ***"; \
+           echo -e "changes: \`$$changes'";\
+         fi; && ) true
+
+
+show-po-changes:
+       diff -e $(po-dir)/$(outdir)/$(LANGUAGE).po $(po-dir)/$(LANGUAGE).po \
+         | $(sed-pofile) | $(sed-edstuff)