trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trans-coord/gnun/prep/gnun ChangeLog GNUmakefile


From: Yavor Doganov
Subject: trans-coord/gnun/prep/gnun ChangeLog GNUmakefile
Date: Fri, 08 Feb 2008 14:52:35 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Yavor Doganov <yavor>   08/02/08 14:52:35

Modified files:
        gnun/prep/gnun : ChangeLog GNUmakefile 

Log message:
        Implement validation for PO files.
        (MSGFMT): New variable.
        (check-po): New variable containing the command to check the .po
        files.
        ($(template_dir)/po/%.$(1).po, $(rootdir)/po/home.$(1).po)
        ($(1).po): Use it.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/ChangeLog?cvsroot=trans-coord&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.32&r2=1.33

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/ChangeLog,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- ChangeLog   7 Feb 2008 18:07:35 -0000       1.36
+++ ChangeLog   8 Feb 2008 14:52:34 -0000       1.37
@@ -1,3 +1,12 @@
+2008-02-08  Yavor Doganov  <address@hidden>
+
+       Implement validation for PO files.
+       * GNUmakefile (MSGFMT): New variable.
+       (check-po): New variable containing the command to check the .po
+       files.
+       ($(template_dir)/po/%.$(1).po, $(rootdir)/po/home.$(1).po)
+       ($(1).po): Use it.
+
 2008-02-07  Yavor Doganov  <address@hidden>
 
        * GNUmakefile (verbatim-templates): New variable.

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/GNUmakefile,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- GNUmakefile 7 Feb 2008 18:07:35 -0000       1.32
+++ GNUmakefile 8 Feb 2008 14:52:35 -0000       1.33
@@ -16,6 +16,7 @@
 # along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
 
 MSGMERGE = msgmerge
+MSGFMT = msgfmt
 PO4A-GETTEXTIZE = po4a-gettextize
 PO4A-TRANSLATE = po4a-translate
 MAKE-PROTOTYPE = ./make-prototype
@@ -111,6 +112,11 @@
 $(RM) address@hidden
 endef
 
+# The command to check the validity of a PO file.
+define check-po
+$(MSGFMT) --check --verbose --output-file=/dev/null $$@
+endef
+
 # Ensure that generic.LANG.html is always present for the homepage and
 # articles' generation.
 define generic_rules
@@ -135,6 +141,7 @@
 # the build can continue without errors.
 # FIXME: Check if this approach works with gettext >> 0.14.
        [ -f $$@ ] || (cp $$< $$@ ; $(CVSSKIP) $(CVS) add $$@)
+       $(check-po)
        @echo Updating PO file...
        $(MSGMERGE) --update $$@ $$< && touch $$@
 
@@ -165,6 +172,7 @@
 
 define home_rules
 $(rootdir)/po/home.$(1).po: $(rootdir)/po/home.pot
+       $(check-po)
        $(MSGMERGE) --update $$@ $$<
        touch $$@
 
@@ -213,6 +221,7 @@
 
 define article_rules
 $(1).po: $(basename $(1)).pot
+       $(check-po)
        $(MSGMERGE) --update $$@ $$<
        touch $$@
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]