From 98dbe6f0d2edfff3a1f5785504504b4a6e5dd4eb Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 19 Nov 2011 11:33:31 +0000 Subject: updating phpDocumentor, part 2: add new version --- buildscripts/PhpDocumentor/phpdoc | 117 ++++++++++++++++++++------------------ 1 file changed, 63 insertions(+), 54 deletions(-) (limited to 'buildscripts/PhpDocumentor/phpdoc') diff --git a/buildscripts/PhpDocumentor/phpdoc b/buildscripts/PhpDocumentor/phpdoc index 0b02a7c8..7d350888 100644 --- a/buildscripts/PhpDocumentor/phpdoc +++ b/buildscripts/PhpDocumentor/phpdoc @@ -1,54 +1,63 @@ -#!/bin/sh -PHP=`which php` -exec $PHP -C -q -d output_buffering=1 $0 $@ - +#!/bin/sh +if [ -z "$PHP" ]; then + PHP=`which php` +fi +(exec $PHP -C -q -d output_buffering=1 "$0" "$@") 2>/dev/null +if [ "$?" -ne "0" ]; then + echo "FAILED: Bad environment variable \$PHP (set to \"$PHP\")" + exit 1 +fi +exit 0 + + * @copyright 2000-2007 Joshua Eichorn + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @filesource + * @link http://www.phpdoc.org + * @link http://pear.php.net/PhpDocumentor + * @todo CS cleanup - change package to PhpDocumentor + */ + +ob_end_clean(); // make output from autofind php code disapear + +/** + * utility: determine whether we're in PEAR or not + * @internal CS Exception- logic here necessitates using an unconditional "include" + */ +$test = @include "phpDocumentor/find_phpdoc.php"; +if ($test == 6) { + // find_phpdoc.php returns 6 + include "phpDocumentor/phpdoc.inc"; +} else { + echo "Error: phpDocumentor not found" . PHP_EOL; +} +?> -- cgit v1.2.3