From 3ba4fa63301f60912ebf547bf2900cfd397cdd59 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Fri, 4 Apr 2003 00:11:00 +0000 Subject: [PATCH] * rename pear_unices to pear.sh and make it a pure shell script --- pear/package-PEAR.xml | 10 +++++----- pear/scripts/{pear_unices => pear.sh} | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) rename pear/scripts/{pear_unices => pear.sh} (59%) diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index 97577d5dd2..8db6d462b0 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -94,16 +94,16 @@ PEAR INSTALLER: - + - - - - + + + + diff --git a/pear/scripts/pear_unices b/pear/scripts/pear.sh similarity index 59% rename from pear/scripts/pear_unices rename to pear/scripts/pear.sh index e4868e8034..839a0122d3 100644 --- a/pear/scripts/pear_unices +++ b/pear/scripts/pear.sh @@ -13,16 +13,16 @@ 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" + INCDIR=$PHP_PEAR_INSTALL_DIR + INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR" else if test "@php_dir@" = '@'php_dir'@'; then - INC="" + INCDIR=`dirname $0`/.. + INCARG="" else - INC="-d include_path=@php_dir@" + INCDIR="@php_dir@" + INCARG="-d include_path=@php_dir@" fi fi -exec $PHP -C -q $INC -d output_buffering=1 $0 $@ - +exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php $@ -- 2.50.1