diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /buildscripts/chmbuilder/build.php | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'buildscripts/chmbuilder/build.php')
-rw-r--r-- | buildscripts/chmbuilder/build.php | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/buildscripts/chmbuilder/build.php b/buildscripts/chmbuilder/build.php index aeef4ad5..b6ea6c7b 100644 --- a/buildscripts/chmbuilder/build.php +++ b/buildscripts/chmbuilder/build.php @@ -1,80 +1,80 @@ -<?php
-
-$ROOT = dirname(__FILE__);
-
-//page root location
-$base = realpath($ROOT.'/../../demos/quickstart/protected/');
-$output_dir = realpath($ROOT.'/../../build/docs');
-$classData = realpath($ROOT.'/../classtree/classes.data');
-$classDocBase = realpath($ROOT.'/classes/');
-
-//-------------- END CONFIG ------------------
-
-if(!isset($isChild))
- $isChild = false;
-
-$toc_file = $base.'/controls/TopicList.tpl';
-
-$pages = include($ROOT.'/../texbuilder/quickstart/pages.php');
-
-include($ROOT.'/ChmQuickstartBuilder.php');
-include($ROOT.'/../../framework/PradoBase.php');
-class Prado extends PradoBase
-{
- protected static $app;
-
- public static function setApplication($application)
- {
- self::$app=$application;
- }
-
- public static function getApplication()
- {
- return self::$app;
- }
-
- public static function setPathOfAlias($alias,$path)
- {
- $aliases = self::getPathAliases();
- if(!isset($aliases[$alias]))
- parent::setPathOfAlias($alias,$path);
- }
-}
-
-include($ROOT.'/../../framework/prado.php');
-
-if($isChild)
-{
- $classBuilder = new ClassDocBuilder($classDocBase,$output_dir);
- $classBuilder->buildDoc($argv[1]);
-}
-else
-{
- $pages['Control Reference : Standard Controls'][] = 'Controls/Standard.page';
-
-
- $quickstart= new ChmQuickstartBuilder($base,$output_dir.'/quickstart');
- $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));
-}
-
+<?php + +$ROOT = dirname(__FILE__); + +//page root location +$base = realpath($ROOT.'/../../demos/quickstart/protected/'); +$output_dir = realpath($ROOT.'/../../build/docs'); +$classData = realpath($ROOT.'/../classtree/classes.data'); +$classDocBase = realpath($ROOT.'/classes/'); + +//-------------- END CONFIG ------------------ + +if(!isset($isChild)) + $isChild = false; + +$toc_file = $base.'/controls/TopicList.tpl'; + +$pages = include($ROOT.'/../texbuilder/quickstart/pages.php'); + +include($ROOT.'/ChmQuickstartBuilder.php'); +include($ROOT.'/../../framework/PradoBase.php'); +class Prado extends PradoBase +{ + protected static $app; + + public static function setApplication($application) + { + self::$app=$application; + } + + public static function getApplication() + { + return self::$app; + } + + public static function setPathOfAlias($alias,$path) + { + $aliases = self::getPathAliases(); + if(!isset($aliases[$alias])) + parent::setPathOfAlias($alias,$path); + } +} + +include($ROOT.'/../../framework/prado.php'); + +if($isChild) +{ + $classBuilder = new ClassDocBuilder($classDocBase,$output_dir); + $classBuilder->buildDoc($argv[1]); +} +else +{ + $pages['Control Reference : Standard Controls'][] = 'Controls/Standard.page'; + + + $quickstart= new ChmQuickstartBuilder($base,$output_dir.'/quickstart'); + $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 |