svn: /pear/pearweb/trunk/cron/ apidoc-queue.php
| From: | Daniel O'Connor | Date: | Mon, 12 Sep 2011 15:09:28 +0000 |
| Subject: | svn: /pear/pearweb/trunk/cron/ apidoc-queue.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9962@lists.php.net to get a copy of this message | ||
clockwerx Mon, 12 Sep 2011 15:09:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316551
Log:
Less syntax errors this time
Changed paths:
U pear/pearweb/trunk/cron/apidoc-queue.php
Modified: pear/pearweb/trunk/cron/apidoc-queue.php
===================================================================
--- pear/pearweb/trunk/cron/apidoc-queue.php 2011-09-12 15:05:10 UTC (rev 316550)
+++ pear/pearweb/trunk/cron/apidoc-queue.php 2011-09-12 15:09:28 UTC (rev 316551)
@@ -21,7 +21,7 @@
*/
// Old PHPDocumentor setup:
// For manual testing on sg1
-// $_ENV[DSN]
+// $_ENV['PEAR_DATABASE_DSN'] = 'mysqli://user:password@localhost/database';
// 1. Ensure you have the appropriate phpdocumentor html template smarty bit installed.
// ERROR: template directory
"/usr/local/lib/php/pear/data/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/PEAR/"
does not exist
@@ -158,27 +158,30 @@
switch ($documentation_engine) {
case 'docblox':
- $command = sprintf("/usr/local/bin/docblox -d %s --title '%s' -t %s
--template %s --ignore */data/*,*/tests/*; rm -rf %s",
- $tmpdir,
- $name,
- $name . " " . $info['version'],
- PEAR_APIDOC_DIR . "/" . $name . "-" .
$info['version'],
- "default",
- $tmpdir
- );
+ $command = sprintf(
+ "/usr/local/bin/docblox -d %s --title '%s' -t %s --template %s
--ignore */data/*,*/tests/*; rm -rf %s",
+ $tmpdir,
+ $name,
+ $name . " " . $info['version'],
+ PEAR_APIDOC_DIR . "/" . $name . "-" .
$info['version'],
+ "default",
+ $tmpdir
+ );
break;
case 'phpdocumentor':
default:
- $command = sprintf("/usr/local/bin/phpdoc -d %s -dn '%s' -ti
'%s' -p on -s on -t %s -o %s --ignore */data/*,*/tests/*; rm -rf %s",
- $tmpdir,
- $name,
- $name . " " . $info['version'],
- PEAR_APIDOC_DIR . "/" . $name . "-" .
$info['version'],
- "HTML:Smarty:PEAR",
- $tmpdir
- );
- }
+ $command = sprintf(
+ "/usr/local/bin/phpdoc -d %s -dn '%s' -ti '%s' -p on -s on
-t %s -o %s --ignore */data/*,*/tests/*; rm -rf %s",
+ $tmpdir,
+ $name,
+ $name . " " . $info['version'],
+ PEAR_APIDOC_DIR . "/" . $name . "-" .
$info['version'],
+ "HTML:Smarty:PEAR",
+ $tmpdir
+ );
+
+ break;
}
$output = "";