summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/documentation/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'native_client_sdk/src/documentation/check.sh')
-rwxr-xr-xnative_client_sdk/src/documentation/check.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/native_client_sdk/src/documentation/check.sh b/native_client_sdk/src/documentation/check.sh
new file mode 100755
index 0000000..ce3b49f
--- /dev/null
+++ b/native_client_sdk/src/documentation/check.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# simple script to check html via tidy. Either specify html files on
+# command line or rely on default which checks all html files in
+# current directory
+set -o nounset
+set -o errexit
+
+
+CheckFile () {
+ echo "========================================"
+ echo "checking $1"
+ echo "========================================"
+ tidy -e -q $1
+}
+
+
+if [ $# -eq 0 ] ; then
+ for file in *.html ; do
+ CheckFile ${file}
+ done
+else
+ for file in $* ; do
+ CheckFile ${file}
+ done
+fi