diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-08-18 12:14:37 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-08-18 12:14:37 +0000 |
commit | daf6512a893fa61c9b8d4b8dc93c46e2a94e7f42 (patch) | |
tree | 8f2cb212f8716d2c5593bca83be19db1392fd833 /t.validate-xhtml | |
parent | ab438eeb75c378da12af944a9525d497ae755e83 (diff) | |
download | fetchmail-daf6512a893fa61c9b8d4b8dc93c46e2a94e7f42.tar.gz fetchmail-daf6512a893fa61c9b8d4b8dc93c46e2a94e7f42.tar.bz2 fetchmail-daf6512a893fa61c9b8d4b8dc93c46e2a94e7f42.zip |
Validate *.html documents as XHTML in 'make check'.
svn path=/branches/BRANCH_6-3/; revision=5420
Diffstat (limited to 't.validate-xhtml')
-rwxr-xr-x | t.validate-xhtml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t.validate-xhtml b/t.validate-xhtml new file mode 100755 index 00000000..e3271988 --- /dev/null +++ b/t.validate-xhtml @@ -0,0 +1,15 @@ +#! /bin/sh + +# This test script validates all *.html files as XHTML. + +set -e +e=0 +fail= +IFS=$(printf '\n\t') +for i in "${srcdir}"/*.html ; do + xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } +done +if [ $e != 0 ] ; then + echo >&2 ">>>>> Invalid XHTML in files: ${fail}." +fi +exit $e |