Author: ivanovic
Date: Sun Mar 20 16:41:33 2011
New Revision: 48956

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48956&view=rev
Log:
apply the "check" changes from r48955 to 1.8, too (and the "real" autotools 
system in there, too)

Modified:
    branches/1.8/po/CMakeLists.txt
    branches/1.8/po/Makefile.in.in
    branches/1.8/po/wesnoth-manpages/Makefile
    branches/1.8/po/wesnoth-manual/Makefile

Modified: branches/1.8/po/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/po/CMakeLists.txt?rev=48956&r1=48955&r2=48956&view=diff
==============================================================================
--- branches/1.8/po/CMakeLists.txt (original)
+++ branches/1.8/po/CMakeLists.txt Sun Mar 20 16:41:33 2011
@@ -271,9 +271,11 @@
 
 if(ENABLE_NLS)
 
+       set(GETTEXT_MSGFMT_PARAMETER --check-format --check-domain )
+
        if(ENABLE_POT_UPDATE_TARGET)
                # Only set the verbose flag for maintainers.
-               set(GETTEXT_MSGFMT_PARAMETER -v)
+               set(GETTEXT_MSGFMT_PARAMETER -v ${GETTEXT_MSGFMT_PARAMETER} )
        endif(ENABLE_POT_UPDATE_TARGET)
 
        foreach(LANG ${LANGUAGES})

Modified: branches/1.8/po/Makefile.in.in
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/po/Makefile.in.in?rev=48956&r1=48955&r2=48956&view=diff
==============================================================================
--- branches/1.8/po/Makefile.in.in (original)
+++ branches/1.8/po/Makefile.in.in Sun Mar 20 16:41:33 2011
@@ -78,14 +78,14 @@
 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
 .po.mo:
-       @echo "$(MSGFMT) -c -o $@ $<"; \
-       $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
+       @echo "$(MSGFMT) --check-format --check-domain -o $@ $<"; \
+       $(MSGFMT) --check-format --check-domain -o t-$@ $< && mv t-$@ $@
 
 .po.gmo:
        @lang=`echo $* | sed -e 's,.*/,,'`; \
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
-       echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o 
$${lang}.gmo $${lang}.po"; \
-       cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o 
t-$${lang}.gmo $${lang}.po && if test -f t-$${lang}.gmo; then mv t-$${lang}.gmo 
$${lang}.gmo; fi
+       echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) --check-format 
--check-domain --statistics -o $${lang}.gmo $${lang}.po"; \
+       cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) --check-format 
--check-domain --statistics -o t-$${lang}.gmo $${lang}.po && if test -f 
t-$${lang}.gmo; then mv t-$${lang}.gmo $${lang}.gmo; fi
 
 .sin.sed:
        sed -e '/^#/d' $< > t-$@

Modified: branches/1.8/po/wesnoth-manpages/Makefile
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/po/wesnoth-manpages/Makefile?rev=48956&r1=48955&r2=48956&view=diff
==============================================================================
--- branches/1.8/po/wesnoth-manpages/Makefile (original)
+++ branches/1.8/po/wesnoth-manpages/Makefile Sun Mar 20 16:41:33 2011
@@ -26,5 +26,5 @@
 # generate .gmo files for po4a manpages
 .po.gmo:
        @lang=`echo $* | sed -e 's,.*/,,'`; \
-       echo "$(MSGFMT) -c --statistics -o /dev/null $${lang}.po"; \
-       $(MSGFMT) -c --statistics -o /dev/null $${lang}.po
+       echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null 
$${lang}.po"; \
+       $(MSGFMT) --check-format --check-domain --statistics -o /dev/null 
$${lang}.po

Modified: branches/1.8/po/wesnoth-manual/Makefile
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.8/po/wesnoth-manual/Makefile?rev=48956&r1=48955&r2=48956&view=diff
==============================================================================
--- branches/1.8/po/wesnoth-manual/Makefile (original)
+++ branches/1.8/po/wesnoth-manual/Makefile Sun Mar 20 16:41:33 2011
@@ -26,5 +26,5 @@
 # generate .gmo files for po4a manpages
 .po.gmo:
        @lang=`echo $* | sed -e 's,.*/,,'`; \
-       echo "$(MSGFMT) -c --statistics -o /dev/null $${lang}.po"; \
-       $(MSGFMT) -c --statistics -o /dev/null $${lang}.po
+       echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null 
$${lang}.po"; \
+       $(MSGFMT) --check-format --check-domain --statistics -o /dev/null 
$${lang}.po


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to