* Use xmllint (>= 2.7.4) for RelaxNG validation instead of Jing.
This commit is contained in:
parent
df05a759e4
commit
51ad64cc07
3 changed files with 3 additions and 8 deletions
|
@ -140,7 +140,6 @@ NEED_PROG(bash, bash)
|
||||||
NEED_PROG(patch, patch)
|
NEED_PROG(patch, patch)
|
||||||
AC_PATH_PROG(xmllint, xmllint, false)
|
AC_PATH_PROG(xmllint, xmllint, false)
|
||||||
AC_PATH_PROG(xsltproc, xsltproc, false)
|
AC_PATH_PROG(xsltproc, xsltproc, false)
|
||||||
AC_PATH_PROG(jing, jing, false) # needed because xmllint --relaxng seems broken
|
|
||||||
AC_PATH_PROG(w3m, w3m, false)
|
AC_PATH_PROG(w3m, w3m, false)
|
||||||
AC_PATH_PROG(flex, flex, false)
|
AC_PATH_PROG(flex, flex, false)
|
||||||
AC_PATH_PROG(bison, bison, false)
|
AC_PATH_PROG(bison, bison, false)
|
||||||
|
|
|
@ -34,13 +34,9 @@ MANUAL_SRCS = manual.xml introduction.xml installation.xml \
|
||||||
conf-file.xml release-notes.xml \
|
conf-file.xml release-notes.xml \
|
||||||
style.css images
|
style.css images
|
||||||
|
|
||||||
|
# Note: RelaxNG validation requires xmllint >= 2.7.4.
|
||||||
manual.is-valid: $(MANUAL_SRCS) version.txt
|
manual.is-valid: $(MANUAL_SRCS) version.txt
|
||||||
# $(XMLLINT) --xinclude $< | $(XMLLINT) --noout --nonet --relaxng $(docbookrng)/docbook.rng -
|
$(XMLLINT) --noout --nonet --xinclude --noxincludenode --relaxng $(docbookrng)/docbook.rng $<
|
||||||
if test "$(jing)" != "false"; then \
|
|
||||||
$(XMLLINT) --xinclude $< | $(jing) $(docbookrng)/docbook.rng /dev/fd/0; \
|
|
||||||
else \
|
|
||||||
echo "Not validating."; \
|
|
||||||
fi
|
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
version.txt:
|
version.txt:
|
||||||
|
|
|
@ -19,7 +19,7 @@ let
|
||||||
inherit officialRelease;
|
inherit officialRelease;
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ curl bison flex2533 perl libxml2 libxslt w3m bzip2 jing_tools
|
[ curl bison flex2533 perl libxml2New libxslt w3m bzip2
|
||||||
tetex dblatex nukeReferences
|
tetex dblatex nukeReferences
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue