From af832a5a9018c7dcc2f24111d82049902269fc53 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 18 Oct 2006 01:38:47 +0000 Subject: merge from 3.0 branch till 1463. --- buildscripts/chmbuilder/build.php | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 buildscripts/chmbuilder/build.php (limited to 'buildscripts/chmbuilder/build.php') diff --git a/buildscripts/chmbuilder/build.php b/buildscripts/chmbuilder/build.php new file mode 100644 index 00000000..6c352964 --- /dev/null +++ b/buildscripts/chmbuilder/build.php @@ -0,0 +1,80 @@ +buildDoc($argv[1]); +} +else +{ + $pages['Control Reference : Standard Controls'][] = 'Controls/Standard.page'; + + + $quickstart= new ChmQuickstartBuilder($base,$output_dir); + $quickstart->buildDoc($pages); + + //move class data to protected data directory for prado app. + $classFile = $ROOT.'/classes/Data/classes.data'; + if(is_file($classData) && !is_file($classFile)) + copy($classData, $classFile); + $classes = unserialize(file_get_contents($classFile)); + + $classBuilder = new ClassDocBuilder($classDocBase,$output_dir); + + //use child process to build doc, otherwise it consumes too much memory + $child_builder = realpath($ROOT.'/build_child.php'); + foreach($classes as $class =>$data) + { + passthru('php '.$child_builder.' '.$class); + } + + $classBuilder->parseBasePage(); + + $toc = new HTMLHelpTOCBuilder(); + $toc->buildToc($toc_file,$output_dir,array_keys($classes)); +} + +?> \ No newline at end of file -- cgit v1.2.3