cvs: pear /CodeGen_PECL/PECL Extension.php

From: Date: Fri, 18 Aug 2006 16:13:41 +0000
Subject: cvs: pear /CodeGen_PECL/PECL Extension.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41776@lists.php.net to get a copy of this message
hholzgra Fri Aug 18 16:13:41 2006 UTC Modified files: /pear/CodeGen_PECL/PECL Extension.php Log: standalone doc generation fixes, pdf target added http://cvs.php.net/viewvc.cgi/pear/CodeGen_PECL/PECL/Extension.php?r1=1.55&r2=1.56&diff_format=u Index: pear/CodeGen_PECL/PECL/Extension.php diff -u pear/CodeGen_PECL/PECL/Extension.php:1.55 pear/CodeGen_PECL/PECL/Extension.php:1.56 --- pear/CodeGen_PECL/PECL/Extension.php:1.55 Fri Aug 18 14:13:03 2006 +++ pear/CodeGen_PECL/PECL/Extension.php Fri Aug 18 16:13:41 2006 @@ -15,7 +15,7 @@ * @author Hartmut Holzgraefe <hartmut@php.net> * @copyright 2005 Hartmut Holzgraefe * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Extension.php,v 1.55 2006/08/18 14:13:03 hholzgra Exp $ + * @version CVS: $Id: Extension.php,v 1.56 2006/08/18 16:13:41 hholzgra Exp $ * @link http://pear.php.net/package/CodeGen_PECL */ @@ -687,11 +687,25 @@ $makefile = new CodeGen_Tools_FileReplacer("$docdir/Makefile"); $makefile->puts("# -all: +all: html + +confcheck: \t@if test \"x$(PHPDOC)\" = \"x\"; then echo PHPDOC not set; exit 3; fi -\trm -rf html; mkdir html + +manual.xml: manual.xml.in \tsed -e's:@PHPDOC@:\$(PHPDOC):g' < manual.xml.in > manual.xml -\tSP_ENCODING=XML SP_CHARSET_FIXED=YES /usr/bin/openjade -D $(PHPDOC) -wno-idref -c $(PHPDOC)/entities/ISO/catalog -c $(PHPDOC)/dsssl/docbook/catalog -c /usr/share/sgml/CATALOG.docbk41 -c /usr/share/sgml/CATALOG.jade_dsl -c $(PHPDOC)/dsssl/defaults/catalog -d dsssl/html.dsl -V use-output-dir -t sgml $(PHPDOC)/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml + +html: confcheck manual.xml +\trm -rf html; mkdir html +\tSP_ENCODING=XML SP_CHARSET_FIXED=YES openjade -D $(PHPDOC) -wno-idref -c $(PHPDOC)/entities/ISO/catalog -c $(PHPDOC)/dsssl/docbook/catalog -c $(PHPDOC)/dsssl/defaults/catalog -d $(PHPDOC)/dsssl/html.dsl -V use-output-dir -t sgml $(PHPDOC)/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml + +tex: manual.tex + +manual.tex: confcheck manual.xml +\tSP_ENCODING=XML SP_CHARSET_FIXED=YES /usr/bin/openjade -D $(PHPDOC) -wno-idref -c $(PHPDOC)/entities/ISO/catalog -c $(PHPDOC)/dsssl/docbook/catalog -c $(PHPDOC)/dsssl/defaults/catalog -d $(PHPDOC)/dsssl/print.dsl -t tex $(PHPDOC)/dtds/dbxml-4.1.2/phpdocxml.dcl manual.xml + +pdf: manual.tex +\tpdfjadetex manual.tex && pdfjadetex manual.tex && pdfjadetex manual.tex "); $makefile->close(); @@ -860,12 +874,12 @@ $entities->puts("<!ENTITY reference.$idName.functions SYSTEM './functions.xml'>\n"); $entities->close(); + $functionsXml = new CodeGen_Tools_FileReplacer($docdir."/functions.xml"); sort($function_entities); foreach ($function_entities as $entity) { - $functionsXml = new CodeGen_Tools_FileReplacer($docdir."/functions.xml"); - $functionsXml->puts("&$entity;\n"); - $functionsXml->close(); + $functionsXml->puts(" &$entity;\n"); } + $functionsXml->close(); } // }}}

« previous php.pear.cvs (#41776) next »