cvs: peardoc / check-ced-location.php configure.in global.ent manual.xml.in version.ent.in

From: Date: Sun, 23 Mar 2003 10:19:30 +0000
Subject: cvs: peardoc / check-ced-location.php configure.in global.ent manual.xml.in version.ent.in
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-496@lists.php.net to get a copy of this message
mj Sun Mar 23 05:19:30 2003 EDT Added files: /peardoc check-ced-location.php Modified files: /peardoc global.ent configure.in manual.xml.in version.ent.in Log: * Adding a first bunch of files from peardoc2

Index: peardoc/global.ent diff -u /dev/null peardoc/global.ent:1.8 --- /dev/null Sun Mar 23 05:19:29 2003 +++ peardoc/global.ent Sun Mar 23 05:19:29 2003 @@ -0,0 +1,84 @@ +<!-- -*- SGML -*- + + $Id: global.ent,v 1.8 2003/03/23 10:19:29 mj Exp $ + + Contains global "macros" for all the XML documents. + + --> +<!ENTITY url.amazon 'http://www.amazon.com/'> +<!ENTITY url.astyle 'http://astyle.sourceforge.net'> +<!ENTITY url.docbook.book "http://www.docbook.org/"> +<!ENTITY url.docbook.xml "http://www.nwalsh.com/docbook/xml/"> +<!ENTITY url.docbook.skeleton 'http://pear.php.net/downloads/skeleton.xml'> +<!ENTITY url.dsssl "http://www.jclark.com/dsssl/"> +<!ENTITY url.jade "http://www.jclark.com/jade/"> +<!ENTITY url.jclark "http://www.jclark.com/bio.htm"> +<!ENTITY url.dbstyle "http://nwalsh.com/docbook/dsssl/"> +<!ENTITY url.nwalsh "http://nwalsh.com/"> +<!ENTITY url.license.bsd 'http://www.opensource.org/licenses/bsd-license.html'> +<!ENTITY url.license.opensource 'http://www.opensource.org/licenses/'> +<!ENTITY url.license.lgpl 'http://www.fsf.org/licenses/lgpl.txt'> +<!ENTITY url.license.gnu 'http://www.gnu.org/licenses/license-list.html'> +<!ENTITY url.license.php 'http://www.php.net/license/'> +<!ENTITY url.phpdoc 'http://www.phpdoc.de/'> +<!ENTITY url.phplib 'http://sourceforge.net/projects/phplib/'> +<!ENTITY url.php.anoncvs 'http://www.php.net/anoncvs.php'> +<!ENTITY url.php.pear 'http://pear.php.net/'> +<!ENTITY url.php.manual 'http://www.php.net/manual/'> +<!ENTITY url.php.cvs 'http://cvs.php.net/'> +<!ENTITY url.php.cvs.new 'http://www.php.net/php-cvs.php'> +<!ENTITY url.php.gtk 'http://gtk.php.net/'> +<!ENTITY url.php.bugs 'http://bugs.php.net/'> +<!ENTITY url.php.bugs.howto 'http://bugs.php.net/how-to-report.php'> +<!ENTITY url.pear.manual 'http://pear.php.net/manual/'> +<!ENTITY url.pear.support 'http://pear.php.net/support.php'> +<!ENTITY url.pear.package.browse 'http://pear.php.net/packages.php'> +<!ENTITY url.pear.package.new 'http://pear.php.net/package-new.php'> +<!ENTITY url.pear.package.upload 'http://pear.php.net/release-upload.php'> +<!ENTITY url.pear.account 'http://pear.php.net/accounts.php'> +<!ENTITY url.pear.account.new 'http://pear.php.net/account-request.php'> +<!ENTITY url.sourceforge 'http://www.sourceforge.net/'> +<!ENTITY url.tabs.vs.spaces 'http://www.jwz.org/doc/tabs-vs-spaces.html'> + +<!-- The three special language constants --> +<!ENTITY true '<constant>TRUE</constant>'> +<!ENTITY false '<constant>FALSE</constant>'> +<!ENTITY null '<constant>NULL</constant>'> + + +<!ENTITY email.martin 'mj@php.net'> +<!ENTITY email.stig 'stig@php.net'> + +<!ENTITY email.pear.general 'pear-general@lists.php.net'> +<!ENTITY email.pear.general-subscribe 'pear-general-subscribe@lists.php.net'> +<!ENTITY email.pear.webmaster 'pear-webmaster@php.net'> + +<!ENTITY email.pear.dev 'pear-dev@lists.php.net'> +<!ENTITY email.pear.dev-subscribe 'pear-dev-subscribe@lists.php.net'> + +<!ENTITY email.pear.doc 'pear-doc@lists.php.net'> +<!ENTITY email.pear.doc-subscribe 'pear-doc-subscribe@lists.php.net'> + +<!ENTITY link.martin '<ulink url="mailto:&email.martin;">Martin Jansen</ulink>'> + +<!-- for the developers guide --> + +<!-- For tools setup section --> +<!ENTITY url.nwalsh "http://nwalsh.com/docbook/dsssl/"> +<!ENTITY url.nwalsh.xsl "http://nwalsh.com/docbook/xsl/"> +<!ENTITY url.jade "http://www.jclark.com/jade/"> +<!ENTITY url.autoconf "http://sources.redhat.com/autoconf/"> +<!ENTITY url.autoconf.ftp "ftp://ftp.gnu.org/gnu/autoconf/"> +<!ENTITY url.rpm "http://www.rpm.org/"> +<!ENTITY url.docbookmirror1 "ftp://ftp.freesoftware.com/pub/sourceware/docbook-tools/docware/SRPMS/"> +<!ENTITY url.docbookmirror2 "ftp://sourceware.cygnus.com/pub/docbook-tools/docware/SRPMS/"> +<!ENTITY url.win.cygwin "http://www.cygwin.com/"> +<!ENTITY url.iso.entities "http://www.a-es2.uu.nl/~jeroen/iso-entities.zip"> +<!ENTITY url.docbook.appa "http://www.oasis-open.org/docbook/documentation/reference/html/appa.html"> + +<!-- For CVS section --> +<!ENTITY url.cvs "http://www.cvshome.org/"> +<!ENTITY url.cvs-win "http://ftp.cvshome.org/win32/"> +<!ENTITY url.cvstut1 "http://www.arc.unm.edu/~rsahu/cvs.html"> +<!ENTITY url.cvstut2 "http://cellworks.washington.edu/pub/docs/cvs/tutorial/cvs_tutorial_1.html"> +<!ENTITY url.cvs.faq "http://www.loria.fr/~molli/cvs/cvs-FAQ/cvsfaq0.html"> Index: peardoc/configure.in diff -u /dev/null peardoc/configure.in:1.13 --- /dev/null Sun Mar 23 05:19:29 2003 +++ peardoc/configure.in Sun Mar 23 05:19:29 2003 @@ -0,0 +1,417 @@ +dnl $Id: configure.in,v 1.13 2003/03/23 10:19:29 mj Exp $ + +AC_INIT(global.ent) + +dnl use given argument, if any, else search in path +AC_ARG_WITH(php, +[ --with-php=PATH Look for PHP executable needed for helper scripts], +[ + if test $withval != "yes"; then + AC_MSG_CHECKING([for php]) + if test -x $withval; then + PHP=$withval + AC_MSG_RESULT($PHP) + else + PHP=no + AC_MSG_RESULT(no) + AC_MSG_ERROR([$withval: not an executable file]) + fi + else + AC_PATH_PROGS(PHP,"php php4",no) + fi +],[ + AC_PATH_PROGS(PHP,"php php4",no) +] +) +if test $PHP = "no"; then + AC_MSG_WARN([no PHP binary found]) +else + AC_MSG_CHECKING([php version]) + PHPVERSION=`$PHP -qv` + if test "yes" = `echo '<?php echo phpversion()>3?"yes":"no"; ?>' | $PHP -q`; then + AC_MSG_RESULT($PHPVERSION ok) + else + AC_MSG_RESULT($PHPVERSION) + AC_MSG_WARN([PHP version 4.0.0 or newer needed]) + PHP=no + fi +fi +AC_SUBST(PHP) +dnl AC_MSG_CHECKING(for DocBook doctype) +dnl check_catalog_files() { +dnl for catalog in $@; do +dnl DBDT=`grep -E '^PUBLIC.*"docbook.dtd".*$' $catalog 2>/dev/null | cut -d'"' -f 2 ` +dnl if test -n "$DBDT" ; then +dnl DOCBOOK_DOCTYPE=$DBDT +dnl return 1 +dnl fi +dnl MORECATS=`grep -i '^catalog' $catalog 2>/dev/null | cut -d'"' -f 2` +dnl if test -n "$MORECATS" ; then +dnl if check_catalog_files $MORECATS ; then +dnl return 1 +dnl else +dnl return 0 +dnl fi +dnl fi +dnl return 0 +dnl done +dnl return 0 +dnl } +dnl if test -n "$SGML_CATALOG_FILES" ; then +dnl CATFILES=`echo $SGML_CATALOG_FILES | sed -e 's/:/ /'g` +dnl check_catalog_files $CATFILES +dnl fi +dnl if test -n "$DOCBOOK_DOCTYPE"; then +dnl AC_MSG_RESULT(got $DOCBOOK_DOCTYPE) +dnl else +dnl DOCBOOK_DOCTYPE="-//Davenport//DTD DocBook V3.0//EN" +dnl AC_MSG_RESULT(defaulting to $DOCBOOK_DOCTYPE) +dnl fi +DOCBOOK_DOCTYPE="-//Norman Walsh//DTD DocBk XML V1.4//EN" +AC_SUBST(DOCBOOK_DOCTYPE) + +AC_MSG_CHECKING(for docbook.dsl) +AC_ARG_WITH(dsssl, +[ --with-dsssl=[DIR] Look for DSSSL stylesheets in the specified directory], +[ + if test -d "$withval" ; then + DOCBOOK_HTML=$withval/html/docbook.dsl + AC_MSG_RESULT(in $withval) + fi +],[ + for dir in \ + /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh \ + /usr/local/share/sgml/docbook/dsssl/modular \ + /usr/lib/dsssl/stylesheets/docbook \ + /usr/lib/dsssl/stylesheets/nwalsh-modular \ + /usr/lib/dsssl/stylesheets/docbook \ + /usr/lib/sgml/stylesheets/nwalsh-modular \ + /usr/lib/sgml/docbook\ + /usr/lib/sgml/stylesheets/docbook \ + /opt/sgml/lib/stylesheets/docbook \ + /usr/share/sgml/docbk30/dsl \ + /usr/share/sgml/docbkdsl \ + /usr/share/sgml/stylesheets/docbook \ + /usr/share/sgml/docbook/*dsssl-stylesheets* \ + /usr/local/lib/dsssl/stylesheets/docbook \ + /usr/local/lib/dsssl/stylesheets/nwalsh-modular \ + /usr/local/lib/sgml/stylesheets/docbook \ + /usr/local/lib/sgml/stylesheets/nwalsh-modular \ + /usr/local/lib/sgml/docbook \ + /usr/local/share/sgml/docbook/dsssl/modular \ + ../phpdoc-tools/dsssl/docbook \ + ../phpdoc-tools/dsssl \ + phpdoc-tools/dsssl/docbook \ + phpdoc-tools/dsssl + do + if test -d "$dir"; then + DOCBOOK_HTML="$dir/html/docbook.dsl" + AC_MSG_RESULT(autodetected: $dir) + break + fi + done +]) +if test -z "$DOCBOOK_HTML"; then + DOCBOOK_HTML="/usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl" + AC_MSG_RESULT(defaulting - WARNING!!! DSSSL NOT FOUND - WON'T WORK THIS WAY) +fi +AC_SUBST(DOCBOOK_HTML) + +AC_MSG_CHECKING(for docbook.xsl) +AC_ARG_WITH(xsl, +[ --with-xsl=[URI] Look for XSL stylesheets at the specified URI], +[ + DOCBOOKXSL_HTML=$withval/html/chunk.xsl + DOCBOOKXSL_HTMLHELP=$withval/htmlhelp/htmlhelp.xsl + AC_MSG_RESULT(in $withval) +],[ + for dir in \ + /usr/share/sgml/docbook/*xsl-stylesheets* \ + ../phpdoc-tools/xsl/docbook \ + ../phpdoc-tools/xsl \ + phpdoc-tools/xsl/docbook \ + phpdoc-tools/xsl + do + if test -d "$dir"; then + DOCBOOKXSL_HTML=$dir/html/chunk.xsl + DOCBOOKXSL_HTMLHELP=$dir/htmlhelp/htmlhelp.xsl + AC_MSG_RESULT(autodetected: $dir) + + break + fi + done +]) +AC_SUBST(DOCBOOKXSL_HTML) +AC_SUBST(DOCBOOKXSL_HTMLHELP) + +AC_MSG_CHECKING(for PHP source path) +AC_ARG_WITH(source, +[ --with-source=[DIR] Look at the specified source directory], +[ + if test -d "$withval" ; then + PHP_SOURCE=$withval + else + PHP_SOURCE=../php4 + fi +],[ + PHP_SOURCE=../php4 +]) +AC_MSG_RESULT($PHP_SOURCE) +AC_SUBST(PHP_SOURCE) +PEAR_BUILD_DATE=`date` +AC_SUBST(PEAR_BUILD_DATE) + +AC_MSG_CHECKING(for language) +AC_ARG_WITH(lang, +[ --with-lang=LANG Choose a language to work with], +[ + if test "$withval" = "yes"; then + PEAR_BUILD_DATE=`date '+%Y-%m-%d'` + AC_SUBST(PEAR_BUILD_DATE) + + LANG=en + AC_MSG_RESULT([en (default)]) + else + if test ! -d "$srcdir/$withval"; then + AC_MSG_RESULT() + AC_MSG_ERROR(Language \"$withval\" not supported!) + fi + + dnl day/month/year + PEAR_BUILD_DATE=`date '+%d-%m-%Y'` + AC_SUBST(PEAR_BUILD_DATE) + + if test "$withval" = "ja"; then + PEAR_BUILD_DATE=`date '+%Y-%m-%d'` + AC_SUBST(PEAR_BUILD_DATE) + fi + + LANG=$withval + LANGDIR=$withval + AC_MSG_RESULT( $withval ) + fi +],[ + LANG=en + LANGDIR=en + AC_MSG_RESULT([en (default)]) +]) +AC_SUBST(LANG) +AC_SUBST(LANGDIR) + +MANUAL="pear_manual_$LANG" +AC_SUBST(MANUAL) + +dnl localize paper size by language +dnl (instead of using system-dependant default) +case "$LANG" in + cs|de|hu|it|ja|ko|tr|zh_hk|ru) + PAPER_TYPE="A4" + PDF_PAPER_TYPE="a4" + ;; + *) + PAPER_TYPE="USletter" + PDF_PAPER_TYPE="letter" + ;; +esac +AC_SUBST(PAPER_TYPE) +AC_SUBST(PDF_PAPER_TYPE) + +dnl localize order of number and element name +dnl in some headers autogenerated by jade +case "$LANG" in + hu|ko) NUMBER_FIRST="#t" ;; + *) NUMBER_FIRST="#f" ;; +esac +AC_SUBST(NUMBER_FIRST) + +case "$LANG" in + ja|tw|ko) ENCODING="UTF-8";; + zh_hk) ENCODING="big5";; + cs|hu|pl) ENCODING="ISO-8859-2";; + ru) ENCODING="KOI8-R";; + ar) ENCODING="ISO-8859-6";; + tr) ENCODING="ISO-8859-9";; + he) ENCODING="iso-8859-8";; + *) ENCODING="ISO-8859-1";; +esac +AC_SUBST(ENCODING) + +dnl look for the OpenJade DSSSL parser +AC_PATH_PROG(OPENJADECHK, "openjade", no) +if test $OPENJADECHK = "no"; then + dnl OpenJade isnt present, so look for the older Jade instead + AC_PATH_PROG(JADECHK, "jade", no) + if test $JADECHK = "no"; then + AC_MSG_CHECKING(for jade in phpdoc-tools) + if test -e ../phpdoc-tools/jade/jade.exe ; then + JADEPATH=../phpdoc-tools/jade/jade.exe + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + AC_MSG_ERROR(unable to locate either Jade or OpenJade) + fi + else + JADEPATH=$JADECHK + fi +else + JADEPATH=$OPENJADECHK +fi + +dnl Search for onsgmls (from OpenSP) +AC_PATH_PROG(ONSGMLSCHK, "onsgmls", no) +if test $ONSGMLSCHK = "no"; then + dnl ongsmls not found, look for nsgmls + AC_PATH_PROG(NSGMLSCHK, "nsgmls", no) + if test $NSGMLSCHK = "no"; then + dnl Search for nsgmls (for win32 plug&pray) + AC_MSG_CHECKING(for nsgml in phpdoc-tools) + if test -e ../phpdoc-tools/jade/nsgmls.exe ; then + NSGMLSCMD=../phpdoc-tools/jade/nsgmls.exe + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + AC_MSG_ERROR(unable to locate either nsgmls or onsgmls) + fi + else + NSGMLSCMD=$NSGMLSCHK + fi +else + NSGMLSCMD=$ONSGMLSCHK +fi + +HTMLHELP_ENCODING=$ENCODING + +case "$ENCODING" in + UTF-8) + JADE="SP_ENCODING=XML SP_CHARSET_FIXED=YES $JADEPATH" + NSGMLS="SP_ENCODING=XML SP_CHARSET_FIXED=YES $NSGMLSCMD" + ;; + big5) + JADE="SP_ENCODING=big5 SP_CHARSET_FIXED=YES $JADEPATH" + NSGMLS="SP_ENCODING=big5 SP_CHARSET_FIXED=YES $NSGMLSCMD" + ;; + ISO-8859-2) + JADE="SP_ENCODING=ISO-8859-2 $JADEPATH" + NSGMLS="SP_ENCODING=ISO-8859-2 $NSGMLSCMD" + HTMLHELP_ENCODING="windows-1250" + ;; + ISO-8859-9) + JADE="SP_ENCODING=ISO-8859-9 $JADEPATH" + NSGMLS="SP_ENCODING=ISO-8859-9 $NSGMLSCMD" + HTMLHELP_ENCODING="windows-1254" + ;; + KOI8-R) + JADE="SP_ENCODING=KOI8-R $JADEPATH" + NSGMLS="SP_ENCODING=KOI8-R $NSGMLSCMD" + ;; + *) + JADE=$JADEPATH + NSGMLS=$NSGMLSCMD + ;; +esac + +AC_SUBST(JADE) +AC_SUBST(NSGMLS) +AC_SUBST(HTMLHELP_ENCODING) + + +dnl Do something smart to find catalog-files +CATALOG="" + +dnl SuSE 6.2/6.3 need this +if test -e /usr/share/sgml/CATALOG.docbk30 +then + CATALOG="$CATALOG -c /usr/share/sgml/CATALOG.docbk30" +fi + +dnl For windows (and maybe *nix too?) users lacking catalog-files + +dnl jade catalog file +# how about using JADEPATH? You should replace the last 4 chars ('jade') with catalog +if test -e ../phpdoc-tools/jade/catalog +then + CATALOG="$CATALOG -c ../phpdoc-tools/jade/catalog" +fi + +dnl iso-ents catalog file +if test -e ../phpdoc-tools/iso-entities/catalog +then + CATALOG="$CATALOG -c ../phpdoc-tools/iso-entities/catalog" +fi + +dnl dsssl catalog file +if test -e ../phpdoc-tools/dsssl/docbook/catalog +then + CATALOG="$CATALOG -c ../phpdoc-tools/dsssl/docbook/catalog" +fi + +AC_SUBST(CATALOG) + + + +AC_OUTPUT(\ +Makefile \ +version.ent \ +common.dsl \ +html.dsl \ +html-locale.dsl \ +html-common.dsl \ +pearweb.dsl \ +manual.xml \ +html.xsl \ +htmlhelp.xsl \ +shortcuts-defs.ent ) + +dnl sanity checks for SuSE 6.x +if test -e /usr/share/sgml/docbk30/docbook.dcl +then + if grep -n "NAMELEN.\+44" /usr/share/sgml/docbk30/docbook.dcl /dev/null + then + AC_MSG_WARN(please change this to e.g. 'NAMELEN 54' in /usr/share/sgml/docbk30/docbook.dcl ) + fi + if grep -n "OMITTAG.\+NO" /usr/share/sgml/docbk30/docbook.dcl /dev/null + then + AC_MSG_WARN(please change this to 'OMITTAG YES' in /usr/share/sgml/docbk30/docbook.dcl ) + fi + +dnl look for tex bug in print stylesheet + if test -e /usr/share/sgml/docbkdsl/print/dbprint.dsl + then + if test 2 -eq `grep -c tex /usr/share/sgml/docbkdsl/print/dbprint.dsl` + then + if fgrep -q 'country: (dsssl-country-code)' /usr/share/sgml/docbkdsl/print/dbprint.dsl + then + if ! grep -q ';;.*country:' /usr/share/sgml/docbkdsl/print/dbprint.dsl + then + AC_MSG_WARN(to prevent a tex bug you should comment out ) + AC_MSG_WARN('country: (dsssl-country-code)' ) + AC_MSG_WARN(in /usr/share/sgml/docbkdsl/print/dbprint.dsl ) + AC_MSG_WARN(or update your DSSSL-Stylesheets) + AC_MSG_WARN(to at least version 1.54) + fi + fi + fi + fi +fi + + +dnl check for files and translations, create chapter entities +echo creating chapters.ent +DEPEND_FILES="" +rm -f chapters.ent +echo "<!-- DON'T TOUCH - AUTOGENERATED BY ./configure -->" > chapters.ent +for file in `find $srcdir/en -name "*.xml" | sed -e"s%^$srcdir\/en\/%%g" | sort` +do + name=`echo $file | sed -e"s/\//./g" -e"s/.xml$//g" -e "s/_/-/g"` + if test -f $srcdir/$LANGDIR/$file + then + file=$srcdir/$LANGDIR/$file + else + file=$srcdir/en/$file + echo " untranslated $file (`wc -l <$file | tr -d ' '` lines)" + fi + DEPEND_FILES="$DEPEND_FILES $file" + echo "<!ENTITY $name SYSTEM \"$file\">" >> chapters.ent +done +chmod a-w chapters.ent + Index: peardoc/manual.xml.in diff -u /dev/null peardoc/manual.xml.in:1.35 --- /dev/null Sun Mar 23 05:19:29 2003 +++ peardoc/manual.xml.in Sun Mar 23 05:19:29 2003 @@ -0,0 +1,117 @@ +<?xml version='1.0' encoding='@ENCODING@' ?> +<!DOCTYPE book PUBLIC "-//Norman Walsh//DTD DocBk XML V1.7//EN" +"@srcdir@/dbxml/docbookx.dtd" [ + +<!ENTITY % language-defs SYSTEM "@srcdir@/@LANGDIR@/language-defs.ent"> +<!ENTITY % language-snippets SYSTEM "@srcdir@/@LANGDIR@/language-snippets.ent"> +<!ENTITY % shortcuts-defs SYSTEM "@srcdir@/shortcuts-defs.ent"> + +%language-defs; +%language-snippets; +%shortcuts-defs; + +<!-- All global entities for the XML files --> +<!ENTITY % global.entities SYSTEM "@srcdir@/global.ent"> + +<!-- These are language independent --> +<!ENTITY % build.version SYSTEM "version.ent"> +<!ENTITY % global.chapters SYSTEM "chapters.ent"> + +%global.entities; +%global.chapters; +%build.version; + +]> + + <book id="guide" lang="@LANG@"> + <title>&PEARManual;</title> + + &bookinfo; + &preface; + + <part id="about-pear"> + <title>&AboutPEAR;</title> + &chapters.intro; + &chapters.installation; + &chapters.support; + &chapters.standards; + &chapters.contributing; + &chapters.faq; + </part> + + <part id="guide-developers"> + <title>&DevelopersGuide</title> + &guide.developers.intro; + &guide.developers.meaning; + &guide.developers.contributing; + &guide.developers.packagedef; + &guide.developers.release; + &guide.developers.supporting; + <!-- &guide.developers.documentation; --> + </part> + + + <part id="core"> + <title>&Core;</title> + &core.pear; + </part> + + <part id="packages"> + <title>Packages</title> + &package.authentication; + &package.benchmarking; + &package.caching; + &package.configuration; + &package.console; + &package.database; + &package.datetime; + &package.encryption; + &package.filesystem; + &package.html; + &package.http; + &package.images; + &package.logging; + &package.mail; + &package.math; + &package.networking; + &package.numbers; + &package.payment; + &package.php; + &package.science; + &package.text; + &package.xml; + </part> + + <part id="pecl"> + <title>&Pecl;</title> + &pecl.apd; + &pecl.bcompiler; + &pecl.imagick; + &pecl.radius; + &pecl.satellite; + &pecl.session-pgsql; + &pecl.soap; + &pecl.spplus; + </part> + + </book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +sgml-parent-document:nil +sgml-default-dtd-file:"manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Index: peardoc/version.ent.in diff -u /dev/null peardoc/version.ent.in:1.3 --- /dev/null Sun Mar 23 05:19:29 2003 +++ peardoc/version.ent.in Sun Mar 23 05:19:29 2003 @@ -0,0 +1 @@ +<!ENTITY peardoc.build-date "@PEAR_BUILD_DATE@"> Index: peardoc/check-ced-location.php +++ peardoc/check-ced-location.php #!/usr/bin/php <?php /** * This is a quick hack to validate and correct the link to the * file manual.ced, that is used by PSGML when editing peardoc * files in Emacs, in all XML files that are part of the PEAR * documentation. The code may of course contain bugs. * * (c) Martin Jansen <mj@php.net>, 2003 * * $Id: check-ced-location.php,v 1.1 2003/03/23 10:19:29 mj Exp $ */ // Adjust this to your needs define("BASE_PATH", "/home/martin/cvs/foobar/peardoc/peardoc2/"); /** * Calculate the number of "../" that are necessary to reach * BASE_PATH */ function calculate_steps($path) { $base = preg_quote(BASE_PATH); $path = preg_replace("=" . BASE_PATH . "=", "", $path); return substr_count($path, "/"); } /** * Check if a file contains a correct location of manual.ced * * @param string filename * @param int Will contain number of needed steps to reach manual.ced */ function check_file($file, &$needed) { $needed = calculate_steps($file); $content = file_get_contents($file); if (preg_match("/sgml-default-dtd-file:\"(.*)\"/", $content, $matches)) { if ($needed == substr_count($matches[1], "/")) { return true; } else { return false; } } } /** * Correct location of manual.ced in a file * * @param string filename * @param int Number of needed steps to reach manual.ced */ function fix_file($file, $needed) { for ($i = 0; $i < $needed; $i++) { $location .= "../"; } $location .= "manual.ced"; $content = file_get_contents($file); $content = preg_replace("/sgml-default-dtd-file:\"(.*)manual.ced\"/", 'sgml-default-dtd-file:"' . $location . '"', $content); $fp = fopen($file, "w"); if (!$fp) { return false; } fputs($fp, $content); fclose($fp); return true; } /** * Recursively check directory * * @param string directory */ function check_dir($dir = ".") { $handle = opendir($dir); while (false !== ($file = readdir ($handle))) { if ($file == ".." || $file == ".") { continue; } if (preg_match("/\.xml$/", $file)) { if (!check_file($dir . $file, $needed)) { echo "Error in " . $dir . $file; if (fix_file($dir . $file, $needed)) { echo " ... fixed\n"; } else { echo " ... unable to fix\n"; } } } if (is_dir($dir . $file)) { check_dir($dir . $file . "/"); } } closedir($handle); } check_dir(BASE_PATH); ?>
« previous php.pear.doc (#496) next »