add make test_xml

this is usefull to detect XML problems
This commit is contained in:
nlopess
2004-07-30 10:42:52 +00:00
parent 519adf9371
commit 8a8e568750
3 changed files with 47 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ LANG=@LANG@
NSGMLS=@NSGMLS@ NSGMLS=@NSGMLS@
JADE=@JADE@ -D . -wno-idref JADE=@JADE@ -D . -wno-idref
XSLTPROC=@XSLTPROC@ XSLTPROC=@XSLTPROC@
XMLLINT=@XMLLINT@
FOP=@FOP@ FOP=@FOP@
XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl
CATALOG=@CATALOG@ CATALOG=@CATALOG@
@@ -57,6 +58,8 @@ pdf: FORCE
test: test:
$(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml $(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml
test_xml:
$(XMLLINT) --noent --noout --valid manual.xml
revcheck: FORCE revcheck: FORCE
$(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html $(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html

View File

@@ -10,6 +10,7 @@ Firstly issue these commands:
TEST: TEST:
* make test * make test
* make test_xml (test for XML validity)
MAKE: MAKE:
* make (to make plain html) * make (to make plain html)

View File

@@ -240,7 +240,7 @@ AC_ARG_WITH(fop,
fi fi
],[ ],[
if test -e ../../phpdoc-tools/fop/fop.bat ; then if test -e ../../phpdoc-tools/fop/fop.bat ; then
AC_MSG_CHECKING([for xsltproc]) AC_MSG_CHECKING([for FOP])
FOP=../../phpdoc-tools/fop/fop.bat FOP=../../phpdoc-tools/fop/fop.bat
AC_MSG_RESULT($FOP) AC_MSG_RESULT($FOP)
else else
@@ -255,6 +255,48 @@ AC_SUBST(FOP)
dnl }}} dnl }}}
dnl {{{ check for xmllint
AC_ARG_WITH(xmllint,
[ --with-xmllint=PATH check for xmllint],
[
if test $withval != "yes"; then
AC_MSG_CHECKING([for xmllint])
if test -x $withval -a -f $withval
then
XMLLINT=$withval
AC_MSG_RESULT($XMLLINT)
else
XMLLINT=no
AC_MSG_RESULT(no)
AC_MSG_ERROR([$withval: no xmllint binary found])
fi
else
if test -e ../../phpdoc-tools/libxml/xmllint.exe ; then
AC_MSG_CHECKING([for xmllint])
XSLTPROC=../../phpdoc-tools/libxml/xmllint.exe
AC_MSG_RESULT($XMLLINT)
else
AC_PATH_PROG(XMLLINT,"xmllint",no)
fi
fi
],[
if test -e ../../phpdoc-tools/libxml/xmllint.exe ; then
AC_MSG_CHECKING([for xmllint])
XMLLINT=../../phpdoc-tools/libxml/xmllint.exe
AC_MSG_RESULT($XMLLINT)
else
AC_PATH_PROG(XMLLINT,"xmllint",no)
fi
]
)
if test $XMLLINT = "no"; then
AC_MSG_WARN([no xmllint binary found, XML Validation won't work])
fi
AC_SUBST(XMLLINT)
dnl }}}
dnl }}} dnl }}}
dnl {{{ check for catalog files dnl {{{ check for catalog files