aboutsummaryrefslogtreecommitdiffstats
path: root/tools/scripts/build/bin-build/xml-validate-all.sh
diff options
context:
space:
mode:
authorFredrik Roubert <roubert@google.com>2018-05-07 13:50:38 +0200
committerFredrik Roubert <roubert@google.com>2018-05-09 12:16:14 +0200
commit333a3d868716b770fa7dbada1f70e6cc2edaaa2c (patch)
tree38320dc4aada964ecf2fa2d16813b9db8cabab2f /tools/scripts/build/bin-build/xml-validate-all.sh
parent6ccd41d8c8152bf1fcb39b3e98ec5fbc096b911c (diff)
downloadandroid_external_cldr-333a3d868716b770fa7dbada1f70e6cc2edaaa2c.tar.gz
android_external_cldr-333a3d868716b770fa7dbada1f70e6cc2edaaa2c.tar.bz2
android_external_cldr-333a3d868716b770fa7dbada1f70e6cc2edaaa2c.zip
Copy CLDR 32.0.1 from unicode.org to aosp/cldr-release-32-0-1.
These files were exported from the CLDR Subversion repository by running the following commands: svn export --force https://unicode.org/repos/cldr/tags/release-32-0-1 . git clean -dfX git add -A . Bug: 79438058 Change-Id: I0b4a10f3a3f49b52ffe4bdb3c60cb1cc65de8cc1
Diffstat (limited to 'tools/scripts/build/bin-build/xml-validate-all.sh')
-rw-r--r--tools/scripts/build/bin-build/xml-validate-all.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/scripts/build/bin-build/xml-validate-all.sh b/tools/scripts/build/bin-build/xml-validate-all.sh
new file mode 100644
index 0000000..0cdc93b
--- /dev/null
+++ b/tools/scripts/build/bin-build/xml-validate-all.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# now we have -q optiuon
+#find . -name '*.xml' | xargs ~/bin-build/XMLValidator 2>&1 | tee validate.log | fgrep -v 'Processing file '
+XMLValidator -q seed common 2>&1 | tee validate.log
+fgrep -q 'Exception in thread' validate.log && exit 1
+fgrep -q ERROR validate.log || exit 0
+echo `fgrep -c ERROR validate.log` errors. >&2
+exit 1