3 # This test script validates all *.html files as XHTML.
10 # smoke test validator and skip if it fails
11 cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77
12 <?xml version="1.0" encoding="US-ASCII"?>
13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml">
15 <head><title /></head><body></body></html>
18 for i in "${srcdir}"/*.html ; do
19 case "$i" in */fetchmail-man.html) continue ;; esac
20 xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; }
23 echo >&2 ">>>>> Invalid XHTML in files: ${fail}."