Skip to content

Commit 19e9246

Browse files
committed
* paj's last Windows install fixes
1 parent 297caeb commit 19e9246

File tree

3 files changed

+40
-31
lines changed

3 files changed

+40
-31
lines changed

pear/package-PEAR.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</maintainer>
3232
</maintainers>
3333
<release>
34-
<version>1.1-dev</version>
34+
<version>1.1</version>
3535
<state>stable</state>
3636
<date>2003-01-10</date>
3737
<notes>
@@ -94,17 +94,23 @@ PEAR INSTALLER:
9494
<file role="php" name="Guess.php"/>
9595
</dir>
9696
<dir name="scripts">
97-
<file baseinstalldir="/" role="script" install-as="pear" name="pear.in">
97+
<file baseinstalldir="/" role="script" install-as="pear" name="pear_unices">
9898
<replace from="@php_bin@" to="php_bin" type="pear-config"/>
9999
<replace from="@php_dir@" to="php_dir" type="pear-config"/>
100100
<replace from="@pear_version@" to="version" type="package-info"/>
101101
<replace from="@include_path@" to="php_dir" type="pear-config"/>
102102
</file>
103103
<file baseinstalldir="/" role="script" platform="windows" install-as="pear.bat" name="pear.bat">
104-
<replace from='"@bin_dir@"' to="bin_dir" type="pear-config"/>
105-
<replace from='"@php_bin@"' to="php_bin" type="pear-config"/>
106-
<replace from='"@include_path@"' to="php_dir" type="pear-config"/>
107-
</file>
104+
<replace from="@bin_dir@" to="bin_dir" type="pear-config"/>
105+
<replace from="@php_bin@" to="php_bin" type="pear-config"/>
106+
<replace from="@include_path@" to="php_dir" type="pear-config"/>
107+
</file>
108+
<file baseinstalldir="/" role="php" install-as="pearcmd.php" name="pear.in">
109+
<replace from="@php_bin@" to="php_bin" type="pear-config"/>
110+
<replace from="@php_dir@" to="php_dir" type="pear-config"/>
111+
<replace from="@pear_version@" to="version" type="package-info"/>
112+
<replace from="@include_path@" to="php_dir" type="pear-config"/>
113+
</file>
108114
</dir>
109115
</filelist>
110116
<deps>

pear/scripts/pear_unices

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
3+
# first find which PHP binary to use
4+
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
5+
PHP="$PHP_PEAR_PHP_BIN"
6+
else
7+
if test "@php_bin@" = '@'php_bin'@'; then
8+
PHP=php
9+
else
10+
PHP="@php_bin@"
11+
fi
12+
fi
13+
14+
# then look for the right pear include dir
15+
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
16+
INC="-d include_path=$PHP_PEAR_INSTALL_DIR"
17+
else
18+
if test "@php_dir@" = '@'php_dir'@'; then
19+
INC=""
20+
else
21+
INC="-d include_path=@php_dir@"
22+
fi
23+
fi
24+
25+
exec $PHP -C -q $INC -d output_buffering=1 $0 $@
26+
<?php
27+
include "@include_path@/pearcmd.php";
28+
?>

pear/scripts/pear.in renamed to pear/scripts/pearcmd.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
#!/bin/sh
2-
3-
# first find which PHP binary to use
4-
if test "x$PHP_PEAR_PHP_BIN" != "x"; then
5-
PHP="$PHP_PEAR_PHP_BIN"
6-
else
7-
if test "@php_bin@" = '@'php_bin'@'; then
8-
PHP=php
9-
else
10-
PHP="@php_bin@"
11-
fi
12-
fi
13-
14-
# then look for the right pear include dir
15-
if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
16-
INC="-d include_path=$PHP_PEAR_INSTALL_DIR"
17-
else
18-
if test "@php_dir@" = '@'php_dir'@'; then
19-
INC=""
20-
else
21-
INC="-d include_path=@php_dir@"
22-
fi
23-
fi
24-
25-
exec $PHP -C -q $INC -d output_buffering=1 $0 $@
261
<?php
272
//
283
// +----------------------------------------------------------------------+

0 commit comments

Comments
 (0)