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

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

trans-coord/gnun/server/gnun GNUmakefile Change...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun GNUmakefile Change...
Date: Thu, 31 Jan 2013 07:22:25 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       13/01/31 07:22:25

Modified files:
        gnun/server/gnun: GNUmakefile ChangeLog NEWS 

Log message:
        (validate-all): Limit the maximum number of reports against invalid
        articles.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.150&r2=1.151
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.350&r2=1.351
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.82&r2=1.83

Patches:
Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -b -r1.150 -r1.151
--- GNUmakefile 19 Jan 2013 20:45:23 -0000      1.150
+++ GNUmakefile 31 Jan 2013 07:22:25 -0000      1.151
@@ -1,4 +1,4 @@
-# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Free Software
+# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software
 #   Foundation, Inc.
 
 # This file is part of GNUnited Nations.
@@ -1270,18 +1270,26 @@
 # and the page may become invalid in an included file changes.
 .PHONY: validate-all
 validate-all:
+       fails_count=""; \
        for html in $(subst /po/,/,$(ALL_POTS:%.pot=%.html)); do \
           echo Validating $${html}...; \
-          $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${web-addr} $${html}; \
+          $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${web-addr} $${html} \
+          || fails_count=x$$fails_count; \
+          if test "x$$fails_count" = xxxxxxxxx; then \
+            echo Too many invalid articles';' skipping the rest.; \
+            exit 1; \
+          fi; \
         done
 # Note that the HTML file with translation may or may not exist yet,
 # so we should test it; also, if the HTML file is not newer than PO,
 # it may be a very old translation whose format validation is not supported.
+       fails_count=""; \
        for html in $(articles-translated); do \
           po=$${html%html}po; po=$${po%/*}/po/$${po##*/}; \
           if test -f $${html} && test $${html} -nt $${po}; then \
             echo Validating $${html}...; \
-            $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${transl-addr} $${html}; \
+            $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${transl-addr} $${html} \
+            || fails_count=x$$fails_count; \
           else \
             if test -f $${html} ; then \
               echo File $${html} is not newer than $${po}.; \
@@ -1289,6 +1297,10 @@
               echo No $${html} exist.; \
             fi; \
           fi; \
+          if test "x$$fails_count" = xxxxxxxxx; then \
+            echo Too many invalid articles';' skipping the rest.; \
+            exit 1; \
+          fi; \
         done
 
 ### Everything that has a beginning has an end. ###

Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.350
retrieving revision 1.351
diff -u -b -r1.350 -r1.351
--- ChangeLog   19 Jan 2013 20:45:22 -0000      1.350
+++ ChangeLog   31 Jan 2013 07:22:25 -0000      1.351
@@ -1,3 +1,9 @@
+2013-01-31  Pavel Kharitonov  <address@hidden>
+
+       * GNUmakefile (validate-all): Limit the maximum number
+       of reports against invalid articles.
+       * NEWS: Update.
+
 2013-01-20  Pavel Kharitonov  <address@hidden>
 
        Make the format of `no-grace-articles' and

Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- NEWS        19 Jan 2013 20:45:23 -0000      1.82
+++ NEWS        31 Jan 2013 07:22:25 -0000      1.83
@@ -2,6 +2,9 @@
 
 * Changes in GNUnited Nations 0.8 (????-??-??)
 
+*** The maximum number of reports against invalid articles
+    in `validate-all' is limited.
+
 *** The format of `no-grace-articles' and `no-validate-articles' was
     simplified and unified with `extra-templates'.
 
@@ -392,7 +395,7 @@
 
 -----
 
-Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
 
 This file is part of GNUnited Nations.
 



reply via email to

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