Skip to content

Commit

Permalink
* rename pear_unices to pear.sh and make it a pure shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
stigsb committed Apr 4, 2003
1 parent 74868f3 commit 3ba4fa6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions pear/package-PEAR.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ PEAR INSTALLER:
<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"/>
Expand Down
14 changes: 7 additions & 7 deletions pear/scripts/pear_unices → pear/scripts/pear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
<?php
include "@include_path@/pearcmd.php";
?>
exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php $@

0 comments on commit 3ba4fa6

Please sign in to comment.