philip Wed Aug 18 18:00:49 2004 EDT
Modified files: /phpdoc/scripts missing-entities.php.in file-entities.php.in Log: Improved debugging output for missing ids/entities, and mentioned missing Zend is normal. http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.12&r2=1.13&ty=u Index: phpdoc/scripts/missing-entities.php.in diff -u phpdoc/scripts/missing-entities.php.in:1.12 phpdoc/scripts/missing-entities.php.in:1.13 --- phpdoc/scripts/missing-entities.php.in:1.12 Wed Dec 31 20:08:46 2003 +++ phpdoc/scripts/missing-entities.php.in Wed Aug 18 18:00:49 2004 @@ -17,13 +17,13 @@ | Gabor Hojtsy <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: missing-entities.php.in,v 1.12 2004/01/01 01:08:46 goba Exp $ + $Id: missing-entities.php.in,v 1.13 2004/08/18 22:00:49 philip Exp $ */ set_time_limit(0); // Print out info for the viewer and log files -echo "\ntesting the manual for missing elements...\n"; +echo "\nTesting the manual for missing elements...\n"; // If we are in a scripts dir, go one dir up // (because the NSGMLS path is relative to that directory!) @@ -108,9 +108,6 @@ // That's all for missing entities fclose($ment); -// print out success info -echo " entities/missing-entities.ent created\n"; - // If we have missing IDs, write them out as an appendix if (count($missing_ids) > 0) { @@ -125,6 +122,29 @@ fclose($mids); // print out success info -echo " entities/missing-ids.xml created\n"; +echo "\nCreated file: entities/missing-entities.ent\n"; +if (!empty($missing_entities)) { + foreach ($missing_entities as $k => $v) { + echo "* " . preg_replace('@[\s]+@', ' ', $v) . "\n"; + } +} else { + echo "* No missing entities were found\n"; +} + +echo "\nCreated file: entities/missing-ids.xml\n"; +if (!empty($missing_ids)) { + foreach ($missing_ids as $k => $v) { + if (false !== strpos('<para id="zend"', $v)) { + echo "* " . preg_replace('@[\s]+@', ' ', $v) . "\n"; + } else { + echo "* Zend id is missing. (Don't worry about this)\n"; + if (count($missing_ids) === 1) { + echo "* No other missing ids were found\n"; + } + } + } +} else { + echo "* No missing ids found\n"; +} ?> http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.17&r2=1.18&ty=u Index: phpdoc/scripts/file-entities.php.in diff -u phpdoc/scripts/file-entities.php.in:1.17 phpdoc/scripts/file-entities.php.in:1.18 --- phpdoc/scripts/file-entities.php.in:1.17 Fri Aug 6 18:37:45 2004 +++ phpdoc/scripts/file-entities.php.in Wed Aug 18 18:00:49 2004 @@ -17,7 +17,7 @@ | Gabor Hojtsy <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: file-entities.php.in,v 1.17 2004/08/06 22:37:45 nlopess Exp $ + $Id: file-entities.php.in,v 1.18 2004/08/18 22:00:49 philip Exp $ */ /** @@ -82,7 +82,7 @@ die("ERROR: Failed to open $script_out_dir/entities/file-entities.ent for writing\n"); } -echo "\ncreating entities/file-entities.ent...\n"; +echo "\nCreating file: entities/file-entities.ent...\n"; // File header fputs($fp, "<!-- DON'T TOUCH - AUTOGENERATED BY file-entities.php -->\n\n"); @@ -107,7 +107,7 @@ "<!-- ZendAPI not found -->\n" . entstr("zendapi.toc", "") . "\n" ); - echo " Zend part not found\n"; + echo " Zend part (ZendAPI) not found. (Don't worry about this)\n"; } // Reserved constants list is special [temporary]