goba Sat Feb 16 05:49:32 2002 EDT
Modified files:
/phpdoc manual.xml.in configure.in
Log:
Use conditional DTD sections to figure out, whether to use CHMonly
pages or not (=> migrate all structure info to manual.xml.in).
Index: phpdoc/manual.xml.in
diff -u phpdoc/manual.xml.in:1.111 phpdoc/manual.xml.in:1.112
--- phpdoc/manual.xml.in:1.111 Thu Feb 14 11:55:42 2002
+++ phpdoc/manual.xml.in Sat Feb 16 05:49:31 2002
@@ -18,11 +18,19 @@
<!ENTITY % build.version SYSTEM "entities/version.ent">
<!ENTITY % global.chapters SYSTEM "entities/chapters.ent">
+<!-- Include all external DTD parts defined previously -->
%global.entities;
%faqonly.entities;
%global.chapters;
%build.version;
+<!-- Include CHMonly parts, if we are generating for CHM target -->
+<![%chmonly-enabled;[
+ <!ENTITY chmonly '<part
+id="chmonly"><title>&CHMEdition;</title>&chmonly.aboutchm;</part>'>
+]]>
+<!ENTITY chmonly ''>
+
+<!-- Autogenerated missing entites and IDs to make build work -->
<!ENTITY % missing-entities SYSTEM "entities/missing-entities.ent">
%missing-entities;
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.134 phpdoc/configure.in:1.135
--- phpdoc/configure.in:1.134 Tue Feb 12 15:05:01 2002
+++ phpdoc/configure.in Sat Feb 16 05:49:31 2002
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.134 2002/02/12 20:05:01 goba Exp $
+dnl $Id: configure.in,v 1.135 2002/02/16 10:49:31 goba Exp $
dnl autoconf initialisation
AC_INIT()
@@ -748,11 +748,11 @@
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 "<!ENTITY % chmonly-enabled \"INCLUDE\">" >> entities/chapters.ent
echo >> entities/chapters.ent
else
echo "<!-- chmonly pages inclusion disabled -->" >> entities/chapters.ent
- echo "<!ENTITY chmonly \"\">" >> entities/chapters.ent
+ echo "<!ENTITY % chmonly-enabled \"IGNORE\">" >> entities/chapters.ent
fi
for file in `find $srcdir/en -name "*.xml" | sed -e"s%^$srcdir\/en\/%%g" | sort`
do