[asterisk-commits] russell: trunk r153578 - in /trunk: Makefile configure configure.ac makeopts.in
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Nov 2 00:55:46 CDT 2008
Author: russell
Date: Sun Nov 2 00:55:46 2008
New Revision: 153578
URL: http://svn.digium.com/view/asterisk?view=rev&rev=153578
Log:
Add a handy makefile target so that you can validate the documentation against the DTD
by running "make validate-docs"
Modified:
trunk/Makefile
trunk/configure
trunk/configure.ac
trunk/makeopts.in
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?view=diff&rev=153578&r1=153577&r2=153578
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sun Nov 2 00:55:46 2008
@@ -497,6 +497,15 @@
done
@echo
@echo "</docs>" >> $@
+
+validate-docs: doc/core-en_US.xml
+ifeq ($(XMLSTARLET),:)
+ @echo "---------------------------------------------------------------"
+ @echo "--- Please install xmlstarlet to validate the documentation ---"
+ @echo "---------------------------------------------------------------"
+else
+ $(XMLSTARLET) val $<
+endif
update:
@if [ -d .svn ]; then \
Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=153578&r1=153577&r2=153578
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Nov 2 00:55:46 2008
@@ -176,6 +176,7 @@
AC_PATH_PROG([WGET], [wget], :)
AC_PATH_PROG([RUBBER], [rubber], :)
AC_PATH_PROG([KPATHSEA], [kpsewhich], :)
+AC_PATH_PROG([XMLSTARLET], [xmlstarlet], :)
if test "${WGET}" != ":" ; then
DOWNLOAD=${WGET}
else
Modified: trunk/makeopts.in
URL: http://svn.digium.com/view/asterisk/trunk/makeopts.in?view=diff&rev=153578&r1=153577&r2=153578
==============================================================================
--- trunk/makeopts.in (original)
+++ trunk/makeopts.in Sun Nov 2 00:55:46 2008
@@ -24,6 +24,7 @@
DOWNLOAD=@DOWNLOAD@
RUBBER=@RUBBER@
KPATHSEA=@KPATHSEA@
+XMLSTARLET=@XMLSTARLET@
BUILD_PLATFORM=@BUILD_PLATFORM@
BUILD_CPU=@BUILD_CPU@
More information about the asterisk-commits
mailing list