]> Pileus Git - ~andy/fetchmail/commitdiff
Skip XHTML validation if xmllint or DTD are missing.
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 5 Mar 2010 22:07:06 +0000 (23:07 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 5 Mar 2010 22:07:06 +0000 (23:07 +0100)
NEWS
t.validate-xhtml

diff --git a/NEWS b/NEWS
index 3b698e7f191e3174a7905b34c7513224c14cc190..7b5a760478549d9cee1b07ec448c2d4e20ee2247 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -79,6 +79,7 @@ fetchmail 6.3.15 (not yet released):
 * The outdated SVN trunk is now called "oldtrunk" in Git just to save the work
   for future reference. All development in the past few years was on BRANCH_6-3.
 * master was branched from BRANCH_6-3 for user convenience.
+* "make check" now skips HTML validation if xmllint or XHTML DTD are missing.
 
 # DOCUMENTATION
 * Web site and documentation were adjusted to reflect the SVN->Git move.
index d66fc98f279b4a84ad59ea7a23bb5a9d603010af..bf55f4fb0cee3c05630dc9ab0ef02844096790f5 100755 (executable)
@@ -6,6 +6,15 @@ set -eu
 e=0
 fail=
 IFS=$(printf '\n\t')
+
+# smoke test validator and skip if it fails
+cat - <<'_EOF'  | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77
+<?xml version="1.0" encoding="US-ASCII"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head><title /></head><body></body></html>
+_EOF
+
 for i in "${srcdir}"/*.html ; do
     case "$i" in */fetchmail-man.html) continue ;; esac
     xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; }