From 19e924695d8b9c0039f9fb8dbe4f2234acfb3f4e Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Thu, 3 Apr 2003 23:48:39 +0000 Subject: [PATCH] * paj's last Windows install fixes --- pear/package-PEAR.xml | 18 +++++++++++------ pear/scripts/pear_unices | 28 +++++++++++++++++++++++++++ pear/scripts/{pear.in => pearcmd.php} | 25 ------------------------ 3 files changed, 40 insertions(+), 31 deletions(-) create mode 100644 pear/scripts/pear_unices rename pear/scripts/{pear.in => pearcmd.php} (94%) diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index 4a0de38b32..7506e9dcaf 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -31,7 +31,7 @@ - 1.1-dev + 1.1 stable 2003-01-10 @@ -94,17 +94,23 @@ PEAR INSTALLER: - + - - - - + + + + + + + + + + diff --git a/pear/scripts/pear_unices b/pear/scripts/pear_unices new file mode 100644 index 0000000000..e4868e8034 --- /dev/null +++ b/pear/scripts/pear_unices @@ -0,0 +1,28 @@ +#!/bin/sh + +# 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 $@ + diff --git a/pear/scripts/pear.in b/pear/scripts/pearcmd.php similarity index 94% rename from pear/scripts/pear.in rename to pear/scripts/pearcmd.php index 71668ee702..b3ce371106 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pearcmd.php @@ -1,28 +1,3 @@ -#!/bin/sh - -# 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 $@