cvs: php4 /pear/scripts pear.in

From: Date: Fri, 10 Jan 2003 01:16:23 +0000
Subject: cvs: php4 /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8153@lists.php.net to get a copy of this message
ssb Thu Jan 9 20:16:23 2003 EDT Modified files: /php4/pear/scripts pear.in Log: * obey PHP_PEAR_INSTALL_DIR and PHP_PEAR_PHP_BIN environment variables Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.65 php4/pear/scripts/pear.in:1.66 --- php4/pear/scripts/pear.in:1.65 Thu Dec 12 21:10:23 2002 +++ php4/pear/scripts/pear.in Thu Jan 9 20:16:23 2003 @@ -1,7 +1,28 @@ #!/bin/sh -PHP="@php_bin@" -test "$PHP" = '@'php_bin'@' && PHP=php -exec $PHP -C -q -d output_buffering=1 $0 $@ + +# first find which PHP binary to use +if test "x$PHP_PEAR_PHP_BIN" != "x"; then + PHP="$PHP_PEAR_PHP_BIN" +else + if test "@php_bin@" = '@'php_bin'@'; then + PHP=php + else + PHP="@php_bin@" + fi +fi + +# then look for the right pear include dir +if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then + INC="-d include_path=$PHP_PEAR_INSTALL_DIR" +else + if test "@php_dir@" = '@'php_dir'@'; then + INC="" + else + INC="-d include_path=@php_dir@" + fi +fi + +exec $PHP -C -q $INC -d output_buffering=1 $0 $@ <?php // // +----------------------------------------------------------------------+ @@ -22,7 +43,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pear.in,v 1.65 2002/12/13 02:10:23 ssb Exp $ +// $Id: pear.in,v 1.66 2003/01/10 01:16:23 ssb Exp $ ob_end_clean(); /**

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