cvs: php4 /pear package-PEAR.xml /pear/scripts pear.sh pear_unices
| From: | Stig Bakken | Date: | Fri, 04 Apr 2003 00:11:01 +0000 |
| Subject: | cvs: php4 /pear package-PEAR.xml /pear/scripts pear.sh pear_unices | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-9731@lists.php.net to get a copy of this message | ||
ssb Thu Apr 3 19:11:01 2003 EDT
Added files:
/php4/pear/scripts pear.sh
Removed files:
/php4/pear/scripts pear_unices
Modified files:
/php4/pear package-PEAR.xml
Log:
* rename pear_unices to pear.sh and make it a pure shell script
Index: php4/pear/package-PEAR.xml
diff -u php4/pear/package-PEAR.xml:1.44 php4/pear/package-PEAR.xml:1.45
--- php4/pear/package-PEAR.xml:1.44 Thu Apr 3 18:55:11 2003
+++ php4/pear/package-PEAR.xml Thu Apr 3 19:11:00 2003
@@ -94,16 +94,16 @@
<file role="php" name="Guess.php"/>
</dir>
<dir name="scripts">
- <file baseinstalldir="/" role="script" install-as="pear"
name="pear_unices">
+ <file baseinstalldir="/" role="script" install-as="pear"
name="pear.sh">
<replace from="@php_bin@" to="php_bin"
type="pear-config"/>
<replace from="@php_dir@" to="php_dir"
type="pear-config"/>
<replace from="@pear_version@" to="version"
type="package-info"/>
<replace from="@include_path@" to="php_dir"
type="pear-config"/>
</file>
- <file baseinstalldir="/" role="script" platform="windows"
install-as="pear.bat" name="pear.bat">
- <replace from="@bin_dir@" to="bin_dir"
type="pear-config"/>
- <replace from="@php_bin@" to="php_bin"
type="pear-config"/>
- <replace from="@include_path@" to="php_dir"
type="pear-config"/>
+ <file baseinstalldir="/" role="script" platform="windows"
name="pear.bat">
+ <replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
+ <replace from="@php_bin@" to="php_bin" type="pear-config"/>
+ <replace from="@include_path@" to="php_dir"
type="pear-config"/>
</file>
<file baseinstalldir="/" role="php" name="pearcmd.php">
<replace from="@php_bin@" to="php_bin"
type="pear-config"/>
Index: php4/pear/scripts/pear.sh
+++ php4/pear/scripts/pear.sh
#!/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
INCDIR=$PHP_PEAR_INSTALL_DIR
INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR"
else
if test "@php_dir@" = '@'php_dir'@'; then
INCDIR=
dirname $0/..
INCARG=""
else
INCDIR="@php_dir@"
INCARG="-d include_path=@php_dir@"
fi
fi
exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php $@