goba Tue Feb 5 09:28:14 2002 EDT
Modified files:
/phpdoc configure.in manual.xml.in
Log:
Adding chmonly option. A new part is going to be in the CHM Edition,
with tips about how to use it effectively. Hope it will help driving
more traffic from the main site to offline manual viewers.
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.129 phpdoc/configure.in:1.130
--- phpdoc/configure.in:1.129 Sat Feb 2 17:32:32 2002
+++ phpdoc/configure.in Tue Feb 5 09:28:14 2002
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.129 2002/02/02 22:32:32 hholzgra Exp $
+dnl $Id: configure.in,v 1.130 2002/02/05 14:28:14 goba Exp $
dnl autoconf initialisation
AC_INIT()
@@ -423,6 +423,27 @@
dnl }}}
+dnl {{{ enable Windows HTML Help only pages in build
+
+AC_MSG_CHECKING(for chmonly inclusion)
+
+AC_ARG_WITH(chm,
+[ --with-chm=yes Enable Windows HTML Help Edition pages],
+[
+ if test "$withval" = "yes"; then
+ CHMENABLED=yes
+ AC_MSG_RESULT([enabled])
+ else
+ CHMENABLED=no
+ AC_MSG_RESULT([disabled])
+ fi
+],[
+ CHMENABLED=no
+ AC_MSG_RESULT([disabled (default)])
+])
+
+dnl }}}
+
dnl }}}
dnl {{{ language specific stuff
@@ -696,7 +717,7 @@
if test -d "$ZENDAPI"; then
echo >> entities/chapters.ent
echo "<!-- begin ZendAPI integration -->" >> entities/chapters.ent
- echo "<!ENTITY % zend.defs SYSTEM \"$ZENDAPI/Extending_Zend.ent\">" >>
entities/chapters.ent
+ echo "<!ENTITY % zend.defs SYSTEM \"$ZENDAPI/Extending_Zend.ent\">" >>
+entities/chapters.ent
echo "<!ENTITY zendapi.toc SYSTEM \"$ZENDAPI/Extending_Zend.xml\">" >>
entities/chapters.ent
echo >> entities/chapters.ent
echo "%zend.defs;" >> entities/chapters.ent
@@ -705,6 +726,15 @@
else
echo "<!-- ZendAPI not found -->" >> entities/chapters.ent
echo "<!ENTITY zendapi.toc \"\">" >> entities/chapters.ent
+fi
+if test "$CHMENABLED" = "yes"; then
+ echo >> entities/chapters.ent
+ echo "<!-- chmonly pages inclusion enabled -->" >> entities/chapters.ent
+ echo "<!ENTITY chmonly SYSTEM \"$srcdir/chmonly.xml\">" >> entities/chapters.ent
+ echo >> entities/chapters.ent
+else
+ echo "<!-- chmonly pages inclusion disabled -->" >> entities/chapters.ent
+ echo "<!ENTITY chmonly \"\">" >> entities/chapters.ent
fi
for file in `find $srcdir/en -name "*.xml" | sed -e"s%^$srcdir\/en\/%%g" | sort`
do
Index: phpdoc/manual.xml.in
diff -u phpdoc/manual.xml.in:1.108 phpdoc/manual.xml.in:1.109
--- phpdoc/manual.xml.in:1.108 Fri Feb 1 06:13:36 2002
+++ phpdoc/manual.xml.in Tue Feb 5 09:28:14 2002
@@ -217,6 +217,8 @@
&global.function-index;
&missing-ids;
</part>
+
+ &chmonly;
</book>