svn: /pear/pearweb/trunk/cron/ apidoc-queue.php

[email protected] ("Daniel O'Connor") Mon, 12 Sep 2011 15:09:28 +0000
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
--7269591b211b6c9153fe6039556ef2d2eb077914
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

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 = "";

--7269591b211b6c9153fe6039556ef2d2eb077914--