[beast] PO: moved SCM I18N string extraction test here
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] PO: moved SCM I18N string extraction test here
- Date: Thu, 9 Sep 2010 02:21:10 +0000 (UTC)
commit 3e113cf1ec66012aaf39fd9e90f8ff3e7342b101
Author: Tim Janik <timj gtk org>
Date: Thu Sep 9 04:16:48 2010 +0200
PO: moved SCM I18N string extraction test here
po/Makefile.am | 25 +++++++++++++++++++++++++
tests/Makefile.am | 25 -------------------------
2 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/po/Makefile.am b/po/Makefile.am
index 61dff1f..0493541 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -106,6 +106,31 @@ check-unlisted:
@echo "Check top source directory for missing translations..."
@$(MAKE) unlisted
@! test -e unlisted
+.PHONY: check-unlisted
+
+# check SCM i18n string extraction
+check-local: check-scm-strings
+.PHONY: check-scm-strings
+check-scm-strings:
+ @echo "Check po files missing translation strings..."
+ @for lang in $(TRANSLATIONS); do \
+ file=$$lang.po ; \
+ echo $(ECHO_N) " $$lang.po: " ; \
+ for pattern in $(CHECK_SCM_PATS) ; do \
+ grep -Fq $$pattern $$file || { \
+ echo "$$file: misses strings from: $$pattern" ; exit 1 ; } \
+ done ; \
+ echo "OK" ; \
+ done
+CHECK_SCM_PATS=$(strip \
+ library/scripts/mixer-splitup-by-track.scm \
+ library/scripts/modules2grid.scm \
+ library/scripts/part-harmonic-transposer.scm \
+ library/scripts/progressor-example.scm \
+ library/scripts/record-midi.scm \
+ library/scripts/song-parts-operations.scm \
+)
+
# force regeneration of all po files
update-po: Makefile
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0779aa6..fc62083 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -12,31 +12,6 @@ SFIDL = $(top_builddir)/sfi/sfidl
SFIDL_INC = --nostdinc -I$(top_srcdir) -I$(top_builddir)
-# check for .scm i18n strings
-#
-# check for the presence of i18n strings extracted from .scm files.
-# this test should be in po/Makefile.am if we had that.
-check-after: check-scm-strings
-.PHONY: check-scm-strings
-check-scm-strings:
- @for lang in $(ALL_LINGUAS) ; do \
- file=$(top_srcdir)/po/$$lang.po ; \
- echo "CHECK: find scm strings in $$lang.po" ; \
- for pattern in $(PATTERNS) ; do \
- grep -Fq $$pattern $$file || \
- { echo "$$file: misses strings from: $$pattern" ; \
- exit 1 ; } \
- done ; \
- done
-PATTERNS=$(strip \
- library/scripts/mixer-splitup-by-track.scm \
- library/scripts/modules2grid.scm \
- library/scripts/part-harmonic-transposer.scm \
- library/scripts/progressor-example.scm \
- library/scripts/record-midi.scm \
- library/scripts/song-parts-operations.scm \
-)
-
# === rules to generate built sources ===
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]