cvs: pear /PhpDocumentor phpdoc

From: Date: Fri, 23 Feb 2007 17:35:11 +0000
Subject: cvs: pear /PhpDocumentor phpdoc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44847@lists.php.net to get a copy of this message
ashnazg Fri Feb 23 17:35:11 2007 UTC Modified files: /pear/PhpDocumentor phpdoc Log: sourceforge [1543287] Use predefined PHP env var in phpdoc script http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpdoc?r1=1.2&r2=1.3&diff_format=u Index: pear/PhpDocumentor/phpdoc diff -u pear/PhpDocumentor/phpdoc:1.2 pear/PhpDocumentor/phpdoc:1.3 --- pear/PhpDocumentor/phpdoc:1.2 Mon Oct 23 03:58:33 2006 +++ pear/PhpDocumentor/phpdoc Fri Feb 23 17:35:11 2007 @@ -1,6 +1,8 @@ #!/bin/sh -PHP=which php -exec $PHP -C -q -d output_buffering=1 "$0" "$@" +if [ -z "$PHP" ]; then + PHP=which php +fi +(exec $PHP -C -q -d output_buffering=1 "$0" "$@") 2>/dev/null || echo "FAILED: Bad environment variable \$PHP (set to \"$PHP\")" ; exit 1 <?php // // PhpDoc, a program for creating javadoc style documentation from php code @@ -33,7 +35,8 @@ /** * PHP auto documentor, like javadoc - * If you get an error uses this as a shell script then its been dosified + * If you get an error uses this as a shell script then its been dosified... + * fix it with "dos2unix" command. * @author Joshua Eichorn * @version 1.3.0 * @copyright Joshua Eichorn

« previous php.pear.cvs (#44847) next »