[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun GNUmakefile ChangeLog
From: |
Pavel Kharitonov |
Subject: |
trans-coord/gnun/server/gnun GNUmakefile ChangeLog |
Date: |
Fri, 16 Mar 2012 11:48:13 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Pavel Kharitonov <ineiev> 12/03/16 11:48:13
Modified files:
gnun/server/gnun: GNUmakefile ChangeLog
Log message:
(reports-summary): New target.
(report): Don't throw an error when there are no translations
for a language.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.116&r2=1.117
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.258&r2=1.259
Patches:
Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -b -r1.116 -r1.117
--- GNUmakefile 12 Mar 2012 05:42:19 -0000 1.116
+++ GNUmakefile 16 Mar 2012 11:48:13 -0000 1.117
@@ -1018,12 +1018,22 @@
$(error Please specify a language code, for example TEAM=fr)
endif
ifneq ($(TEAM),$(findstring $(TEAM),$(sort $(GENERIC_LINGUAS))))
- $(error There are no translations for language "$(TEAM)")
-endif
+ @echo "There are no translations for language $(TEAM)."
+else
@cd $(rootdir) ; LC_ALL=C find -name '*.$(TEAM).po' -printf "%p: " \
-exec $(MSGFMT) --statistics -o /dev/null '{}' \; 2>&1 \
| sort | $(EGREP) '(fuzzy|untranslated)' \
|| echo "All translations seem to be up-to-date."
+endif
+
+# Special target to compile report about number of outdated translations
+# for all languages.
+.PHONY: reports-summary
+reports-summary:
+ @$(foreach lang,$(TEMPLATE_LINGUAS), echo -n "$(lang): "; \
+ $(MAKE) report TEAM=$(lang) \
+ | $(EGREP) -v "^(make|All translations|There are no translations)" \
+ | wc -l; )
# Special target to touch all the prerequisites of the targets that
# failed HTML validation and thus to trigger a rebuild in the next
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.258
retrieving revision 1.259
diff -u -b -r1.258 -r1.259
--- ChangeLog 13 Mar 2012 04:38:03 -0000 1.258
+++ ChangeLog 16 Mar 2012 11:48:13 -0000 1.259
@@ -1,3 +1,9 @@
+2012-03-16 Pavel Kharitonov <address@hidden>
+
+ * GNUmakefile (reports-summary): New target.
+ (report): Don't throw an error when there are no translations
+ for a language.
+
2012-03-13 Pavel Kharitonov <address@hidden>
* doc/gnun.texi (Localized URLs): Improve the description