bjori Tue Jun 19 19:22:48 2007 UTC
Modified files:
/livedocs mk_phpdoc.php
Log:
- Ignore the 'figures' folders
- Throw a warning if a function-filename contains underscores
http://cvs.php.net/viewvc.cgi/livedocs/mk_phpdoc.php?r1=1.15&r2=1.16&diff_format=u
Index: livedocs/mk_phpdoc.php
diff -u livedocs/mk_phpdoc.php:1.15 livedocs/mk_phpdoc.php:1.16
--- livedocs/mk_phpdoc.php:1.15 Mon Jun 20 03:58:56 2005
+++ livedocs/mk_phpdoc.php Tue Jun 19 19:22:48 2007
@@ -18,7 +18,7 @@
// | Configuration file for phpdoc build |
// +----------------------------------------------------------------------+
//
-// $Id: mk_phpdoc.php,v 1.15 2005/06/20 03:58:56 iliaa Exp $
+// $Id: mk_phpdoc.php,v 1.16 2007/06/19 19:22:48 bjori Exp $
define('MK_VERSION', true);
define('MANUAL_TITLE', 'PHP Manual');
@@ -27,7 +27,7 @@
$top_files = array('manual.xml', 'entities/builtin-extensions.xml');
-$dir_skip_list = array('CVS' => 1, '.cvsignore' => 1, '.' => 1, '..' => 1);
+$dir_skip_list = array('CVS' => 1, '.cvsignore' => 1, '.' => 1, '..' => 1,
'figures' => 1);
$entities_dir = 'entities';
@@ -47,6 +47,10 @@
$docbook_id = 'ref.' .
basename($path);
} else {
$docbook_id =
'function.' . strtolower(substr($f, 0, -4));
+ if(strpos($docbook_id,
"_") !== false) {
+ echo "WARNING:
WRONG FILENAME: $path/$f\n";
+ $docbook_id =
str_replace("_", "-", $docbook_id);
+ }
}
break;
case 'language' :