didou Fri Mar 12 06:12:13 2004 EDT
Modified files: /livedocs TODO mkindex.php Log: peardoc => work in progress more comments and hacks to make peardoc build fine # still need a _lot_ of work http://cvs.php.net/diff.php/livedocs/TODO?r1=1.14&r2=1.15&ty=u Index: livedocs/TODO diff -u livedocs/TODO:1.14 livedocs/TODO:1.15 --- livedocs/TODO:1.14 Fri Feb 27 15:06:42 2004 +++ livedocs/TODO Fri Mar 12 06:12:13 2004 @@ -8,7 +8,8 @@ - Abstract making links to other parts of the manual (static and dynamic, based on filename) - Make the parsing and presentation more generic, so sort of plugins can be - developed for livedocs (for special PEAR or PHP-GTK needs) + developed for livedocs (for special PEAR or PHP-GTK needs) : + * work in progress for PEAR, see the comments in mkindex.php - Better display of how an extension is available (PHP core, bundled ext., PECL ext.) - In livedocs.php, for format_function() : @@ -19,4 +20,4 @@ tags currently in use. -$Revision: 1.14 $ +$Revision: 1.15 $ http://cvs.php.net/diff.php/livedocs/mkindex.php?r1=1.19&r2=1.20&ty=u Index: livedocs/mkindex.php diff -u livedocs/mkindex.php:1.19 livedocs/mkindex.php:1.20 --- livedocs/mkindex.php:1.19 Fri Mar 12 05:17:01 2004 +++ livedocs/mkindex.php Fri Mar 12 06:12:13 2004 @@ -19,7 +19,7 @@ // | construct an index | // +----------------------------------------------------------------------+ // -// $Id: mkindex.php,v 1.19 2004/03/12 10:17:01 didou Exp $ +// $Id: mkindex.php,v 1.20 2004/03/12 11:12:13 didou Exp $ /* just to be on the safe side */ @@ -176,7 +176,12 @@ sqlite_query($idx, 'delete from ents'); + // for peardoc only + //$global_one = array('/home/didou/cvs/peardoc/global.ent');//lob($dirname . '/../*.ent'); // yep, it's ugly + // you'll need to add $global_one to the array_merge call + $ents = glob($dirname . '/*.ent'); + $language_defs = glob($GLOBALS['PHPDOC'] . DIRECTORY_SEPARATOR . $LANG . DIRECTORY_SEPARATOR . '*.ent'); if ($LANG != 'en') { $fallback_language_defs = glob($GLOBALS['PHPDOC'] . DIRECTORY_SEPARATOR . 'en' . DIRECTORY_SEPARATOR . '*.ent'); @@ -204,7 +209,9 @@ if (!isset($replacements[$matches[1][$i]])) { $id = sqlite_escape_string($matches[1][$i]); $value = sqlite_escape_string($matches[2][$i]); - @sqlite_query($idx, "INSERT INTO ents VALUES ('$id', '$value')"); + $strsql = "INSERT INTO ents VALUES ('$id', '$value')"; + @sqlite_query($idx, $strsql); + // echo $strsql . "\n"; // for debuging $replacements[$matches[1][$i]] = $matches[2][$i]; } @@ -339,6 +346,7 @@ sqlite_query($idx, $create); sqlite_query($idx, 'BEGIN TRANSACTION'); $replacements = scan_entities($PHPDOC . DIRECTORY_SEPARATOR . 'entities'); +// no such file for peardoc parse_file($PHPDOC . DIRECTORY_SEPARATOR. 'installpart.xml', 'installpart.xml', 0); parse_file($PHPDOC . DIRECTORY_SEPARATOR. 'manual.xml', 'manual.xml', 0); scan_dir($PHPDOC . DIRECTORY_SEPARATOR . $LANG);