From: alex <bin...@li...> - 2001-10-03 23:56:07
|
alex Wed Oct 3 16:56:01 2001 EDT Modified files: /r2/binarycloud/make/lib MakePHPDoc.php Log: Correting path in new phpdoc make class to match path in ext/ Index: r2/binarycloud/make/lib/MakePHPDoc.php diff -u r2/binarycloud/make/lib/MakePHPDoc.php:1.1 r2/binarycloud/make/lib/MakePHPDoc.php:1.2 --- r2/binarycloud/make/lib/MakePHPDoc.php:1.1 Wed Oct 3 16:41:19 2001 +++ r2/binarycloud/make/lib/MakePHPDoc.php Wed Oct 3 16:56:01 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: MakePHPDoc.php,v 1.1 2001/10/03 23:41:19 alex Exp $ + * -File $Id: MakePHPDoc.php,v 1.2 2001/10/03 23:56:01 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Author alex black, en...@tu... @@ -37,12 +37,12 @@ // document phpdoc itself. // Directory with include files - define("PHPDOC_INCLUDE_DIR", "../docs/phpdoc/"); + define("PHPDOC_INCLUDE_DIR", "../ext/phpdoc/"); // Important: set this to the Linebreak sign of your system! define("PHPDOC_LINEBREAK", "\n"); // main PHPDoc Include File - include("../docs/phpdoc/prepend.php"); + include("../ext/phpdoc/prepend.php"); $doc = new Phpdoc; @@ -57,7 +57,7 @@ $doc->setTarget($this->target_dir); // use these templates: - $doc->setTemplateDirectory("../docs/phpdoc/renderer/html/templates/"); + $doc->setTemplateDirectory("../ext/phpdoc/renderer/html/templates/"); // source files have one of these suffixes: $doc->setSourceFileSuffix( array ("php") ); |
From: alex <bin...@li...> - 2001-10-09 19:49:40
|
alex Tue Oct 9 12:49:35 2001 EDT Modified files: /r2/binarycloud/make/lib MakePHPDoc.php Log: More changes to this, not working because PHPDoc tries to intercept ARGV! AGH! Index: r2/binarycloud/make/lib/MakePHPDoc.php diff -u r2/binarycloud/make/lib/MakePHPDoc.php:1.2 r2/binarycloud/make/lib/MakePHPDoc.php:1.3 --- r2/binarycloud/make/lib/MakePHPDoc.php:1.2 Wed Oct 3 16:56:01 2001 +++ r2/binarycloud/make/lib/MakePHPDoc.php Tue Oct 9 12:49:35 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: MakePHPDoc.php,v 1.2 2001/10/03 23:56:01 alex Exp $ + * -File $Id: MakePHPDoc.php,v 1.3 2001/10/09 19:49:35 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Author alex black, en...@tu... @@ -23,12 +23,40 @@ * @access public */ - function MakePHPDoc() { - + function MakePHPDoc($doc) { +/* + switch ($doc) { + case base: + $this->source_dir = "$bc_home/base/"; + $this->target_dir = "$bc_home/docs/html/base/"; + break; + case user: + $this->source_dir = "$bc_home/user/"; + $this->target_dir = "$bc_home/docs/html/user/"; + break; + case make: + $this->source_dir = "$bc_home/make/"; + $this->target_dir = "$bc_home/docs/html/make/"; + break; + case ext: + $this->source_dir = "$bc_home/ext/"; + $this->target_dir = "$bc_home/docs/html/ext/"; + break; + default: + print " --> Invalid PHPDoc target.\n"; + print " ARGV must be: base, user, ext, make.\n"; + print "[X] Discontinuing Make.\n"; + exit(); + } +*/ // HACK - $default_site_name = 'default'; - // quick hack to insert a site name - + // path hack for testing: + $bc_home = getenv("BCHOME"); + + // HACK + $default_site_name = 'default'; + // quick hack to insert a site name + $start = time(); // WARNING: long runtimes! Make modifications @@ -37,27 +65,27 @@ // document phpdoc itself. // Directory with include files - define("PHPDOC_INCLUDE_DIR", "../ext/phpdoc/"); + define("PHPDOC_INCLUDE_DIR", "$bc_home/ext/phpdoc/"); // Important: set this to the Linebreak sign of your system! define("PHPDOC_LINEBREAK", "\n"); // main PHPDoc Include File - include("../ext/phpdoc/prepend.php"); + include("$bc_home/ext/phpdoc/prepend.php"); $doc = new Phpdoc; // Sets the name of your application. // The name of the application gets used in many default templates. - $doc->setApplication("binarycloud ".$default_site_name); + $doc->setApplication("binarycloud ".$doc); // directory where your source files reside: - $doc->setSourceDirectory($this->source_dir); + $doc->setSourceDirectory("$bc_home/user/"); // save the generated docs here: - $doc->setTarget($this->target_dir); + $doc->setTarget("$bc_home/docs/html/user/"); // use these templates: - $doc->setTemplateDirectory("../ext/phpdoc/renderer/html/templates/"); + $doc->setTemplateDirectory("$bc_home/ext/phpdoc/renderer/html/templates/"); // source files have one of these suffixes: $doc->setSourceFileSuffix( array ("php") ); |