X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t.validate-xhtml;h=8eeafcc699cdcb95a8dc9bb9825755215afb04f8;hb=24ab4a608c8ee1613698a1a312a7b30d138a241e;hp=d66fc98f279b4a84ad59ea7a23bb5a9d603010af;hpb=265c60bb9f997756d5fafd1f8d5a17f6ed4c4497;p=~andy%2Ffetchmail diff --git a/t.validate-xhtml b/t.validate-xhtml index d66fc98f..8eeafcc6 100755 --- a/t.validate-xhtml +++ b/t.validate-xhtml @@ -6,8 +6,20 @@ set -eu e=0 fail= IFS=$(printf '\n\t') + +# ditto for XHTML 1.1 (asciidoc generates that) +cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 + + + + </head><body><p></p></body></html> +_EOF + for i in "${srcdir}"/*.html ; do - case "$i" in */fetchmail-man.html) continue ;; esac + case "$i" in + */Mailbox-Names-UTF7.html) ;; + *) continue ;; + esac xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } done if [ $e != 0 ] ; then