[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun GNUmakefile
From: |
Pavel Kharitonov |
Subject: |
trans-coord/gnun/server/gnun GNUmakefile |
Date: |
Thu, 31 Jan 2013 16:04:56 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Pavel Kharitonov <ineiev> 13/01/31 16:04:55
Modified files:
gnun/server/gnun: GNUmakefile
Log message:
(validate-all): Exit on first invalid article. Suggested by Jan Owoc
on trans-coord-discuss.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.151&r2=1.152
Patches:
Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -b -r1.151 -r1.152
--- GNUmakefile 31 Jan 2013 07:22:25 -0000 1.151
+++ GNUmakefile 31 Jan 2013 16:04:54 -0000 1.152
@@ -1270,26 +1270,21 @@
# 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} \
- || fails_count=x$$fails_count; \
- if test "x$$fails_count" = xxxxxxxxx; then \
- echo Too many invalid articles';' skipping the rest.; \
- exit 1; \
+ || 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} \
- || fails_count=x$$fails_count; \
+ || exit 1; \
else \
if test -f $${html} ; then \
echo File $${html} is not newer than $${po}.; \
@@ -1297,10 +1292,6 @@
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. ###
- trans-coord/gnun/server/gnun GNUmakefile,
Pavel Kharitonov <=