[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun ChangeLog GNUmakef...
From: |
Pavel Kharitonov |
Subject: |
trans-coord/gnun/server/gnun ChangeLog GNUmakef... |
Date: |
Fri, 08 Jun 2012 05:11:54 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Pavel Kharitonov <ineiev> 12/06/08 05:11:54
Modified files:
gnun/server/gnun: ChangeLog GNUmakefile NEWS
gnun/server/gnun/doc: gnun.texi
Log message:
Add `validate-all' target.
* GNUmakefile (validate-all): New target.
* doc/gnun.texi (validate-all): New node.
(Runtime Variables, Validation): Add address@hidden validation'.
* NEWS: Update.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.278&r2=1.279
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.128&r2=1.129
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.56&r2=1.57
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/doc/gnun.texi?cvsroot=trans-coord&r1=1.55&r2=1.56
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -b -r1.278 -r1.279
--- ChangeLog 7 Jun 2012 14:36:21 -0000 1.278
+++ ChangeLog 8 Jun 2012 05:11:54 -0000 1.279
@@ -1,3 +1,12 @@
+2012-06-08 Pavel Kharitonov <address@hidden>
+
+ Add `validate-all' target.
+
+ * GNUmakefile (validate-all): New target.
+ * doc/gnun.texi (validate-all): New node.
+ (Runtime Variables, Validation): Add address@hidden validation'.
+ * NEWS: Update.
+
2012-06-07 Pavel Kharitonov <address@hidden> (tiny change)
* mailfail: Invoke `mail' in a more portable fashion.
Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -b -r1.128 -r1.129
--- GNUmakefile 3 Jun 2012 07:15:14 -0000 1.128
+++ GNUmakefile 8 Jun 2012 05:11:54 -0000 1.129
@@ -1250,5 +1250,20 @@
fi; \
done
endif
+# Validate all articles under GNUN's control.
+# This is needed because GNUN doesn't track included files,
+# and the page may become invalid in an included file changes.
+.PHONY: validate-all
+validate-all:
+ for html in $(subst /po/,/,$(ALL_POTS:%.pot=%.html)); do \
+ echo Validating $${html}...; \
+ $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${web-addr} $${html}; \
+ done
+# Note that the HTML file with translation may or may not exist yet,
+# so we should test it.
+ for html in $(articles-translated); do \
+ test -f $${html} || continue; echo Validating $${html}...; \
+ $(VALIDATE-HTML-NOTIFY) $(NOTIFYSKIP) ${transl-addr} $${html}; \
+ done
### Everything that has a beginning has an end. ###
Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- NEWS 5 Jun 2012 10:13:07 -0000 1.56
+++ NEWS 8 Jun 2012 05:11:54 -0000 1.57
@@ -2,6 +2,8 @@
* Changes in GNUnited Nations 0.6 (????-??-??)
+** New target in GNUmakefile: `validate-all'.
+
** New script to initialize PO files: `gnun-init-po'.
** New scripts to facilitate migration to PO format: `gnun-preconvert' and
Index: doc/gnun.texi
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/doc/gnun.texi,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- doc/gnun.texi 5 Jun 2012 10:13:08 -0000 1.55
+++ doc/gnun.texi 8 Jun 2012 05:11:54 -0000 1.56
@@ -611,6 +611,7 @@
@code{TEMPLATE_LINGUAS} and will perform additional check at the end,
@code{cvs|svn|bzr add}-ing all necessary files.
address@hidden validation
When validation is enabled (i.e. with @code{VALIDATE=yes}), the
original English articles are validated first, before any commands
that generate the other files, and @command{make} exits with an error
@@ -653,6 +654,7 @@
* sync::
* report::
* triggers::
+* validate-all::
@end menu
@node no-grace-items
@@ -814,6 +816,16 @@
In the future, this target may be extended further to do other useful
things that should be ``triggered'' after the main build.
address@hidden validate-all
address@hidden The @code{validate-all} Target
address@hidden validation
+
+The @code{validate-all} target validates all HTML pages under GNUN's
+control. It is needed because GNUN doesn't track dependencies on the
+included files, so errors in those included files could pass unnoticed.
+
+This target is invoked once a day by the official GNUN cron job.
+
@node Main Variables
@section Defining Articles to be Built
@cindex variables
@@ -1869,6 +1881,7 @@
@node Validation
@subsection Validation
address@hidden validation
The script @command{gnun-validate-html} is useful for webmasters who
want to verify if their (potentially intrusive) changes result in a
- trans-coord/gnun/server/gnun ChangeLog GNUmakef...,
Pavel Kharitonov <=