<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"/>
# 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 $@