cvs: /phpdoc howto.sgml.in manual.sgml.in /phpdoc howto.sgml manual.sgml /phpdoc configure.in
| From: | Torben Wilson | Date: | Thu, 21 Oct 1999 07:49:55 +0000 |
| Subject: | cvs: /phpdoc howto.sgml.in manual.sgml.in /phpdoc howto.sgml manual.sgml /phpdoc configure.in | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11801@lists.php.net to get a copy of this message | ||
cslawi Thu Oct 21 03:49:55 1999 EDT
Added files:
/phpdoc howto.sgml.in manual.sgml.in
Removed files:
/phpdoc howto.sgml manual.sgml
Modified files:
/phpdoc configure.in
Log:
Use configure to check for the system's DocBook DTD. This should allow
folks with a stock DocBook 3.1 to compile the manual without having to
edit phpdoc files (to set the doctype) and DocBook files (to allow
tag minimilization).
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.11 phpdoc/configure.in:1.12
--- phpdoc/configure.in:1.11 Mon Jul 26 23:00:51 1999
+++ phpdoc/configure.in Thu Oct 21 03:49:54 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.11 1999/07/27 03:00:51 jah Exp $
+dnl $Id: configure.in,v 1.12 1999/10/21 07:49:54 cslawi Exp $
AC_INIT(global.ent)
@@ -8,6 +8,25 @@
dnl used by checkdoc
AC_PATH_PROG(PERL_PATH, perl)
+AC_MSG_CHECKING(for doctype)
+if test -n "$SGML_CATALOG_FILES" ; then
+ CATFILES=
echo $SGML_CATALOG_FILES | sed -e 's/:/ /'g
+ for catalog in $CATFILES ; do
+ DBDT=grep -E '^PUBLIC.*"docbook.dtd".*$' $catalog 2>/dev/null|
cut -d'"' -f 2
+ if test -n "$DBDT" ; then
+ DOCBOOK_DOCTYPE=$DBDT
+ break
+ fi
+ done
+fi
+if test -n "$DOCBOOK_DOCTYPE"; then
+ AC_MSG_RESULT(got $DOCBOOK_DOCTYPE)
+else
+ DOCBOOK_DOCTYPE="-//Davenport//DTD DocBook V3.0//EN"
+ AC_MSG_RESULT(defaulting to $DOCBOOK_DOCTYPE)
+fi
+AC_SUBST(DOCBOOK_DOCTYPE)
+
AC_MSG_CHECKING(for docbook.dsl)
for dir in /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh \
/usr/lib/dsssl/stylesheets/docbook \
@@ -53,5 +72,5 @@
AC_MSG_RESULT($PHP_SOURCE)
AC_SUBST(PHP_SOURCE)
-AC_OUTPUT(Makefile version.ent checkdoc howto.dsl html.dsl print.dsl phpweb.dsl php.dsl)
+AC_OUTPUT(Makefile version.ent checkdoc howto.sgml manual.sgml howto.dsl html.dsl print.dsl
phpweb.dsl php.dsl)
chmod +x checkdoc