[gnome3-web] [i18n] abort building translated files if html files are not xhtml



commit e20414c5c4c7200a7870fa1f88dbc0a969af4ed9
Author: Frédéric Péters <fpeters 0d be>
Date:   Mon Feb 14 13:25:41 2011 +0100

    [i18n] abort building translated files if html files are not xhtml

 po/build.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/po/build.sh b/po/build.sh
index 0299cf0..efc5b83 100755
--- a/po/build.sh
+++ b/po/build.sh
@@ -1,5 +1,12 @@
 #! /bin/bash -e
 
+# make sure all HTML files are valid XML, this will be required by xml2po
+# in the second phase...
+for HTMLFILE in ../*.html
+do
+    xmllint --noout $HTMLFILE
+done
+
 xml2po -e -m xhtml -o gnome3.pot ../*.html
 for LANG in $(cat LINGUAS)
 do



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