From f0fb1db1f524d51503ebc757828c7d2f3874cebf Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 2 Nov 2013 17:04:58 -0400 Subject: Run xmllint as part of DocBook build This will verify that the DocBook markup is valid before building anything from it. The actual build tools don't do that and might produce garbage if the markup is not valid. --- Makefile | 1 + debian/control | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 865942d..4272d93 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ check: isutf8 ./check-isutf8 %.1: %.docbook + xmllint --noout --valid $< $(DOCBOOK2XMAN) $< errno.o: errnos.h diff --git a/debian/control b/debian/control index aa5f025..bf34038 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: moreutils Section: utils Priority: optional -Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.9.0), docbook2x, docbook-xml +Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.9.0), docbook2x, docbook-xml, libxml2-utils Maintainer: Joey Hess Standards-Version: 3.9.2 Vcs-Git: git://git.kitenet.net/moreutils -- cgit v1.2.3