Skip to content

Commit aa19f65

Browse files
author
Ilia Alshanetsky
committed
Download pear phar file when making a distribution package
1 parent 07d0f0c commit aa19f65

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

makedist

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ for i in $LT_TARGETS; do
122122
test -f "$i" && mv $i.bak $i
123123
done
124124

125+
# download pear
126+
$ECHO_N "makedist: Attempting to download PEAR's phar archive"
127+
if test ! -x wget; then
128+
wget http://pear.php.net/install-pear-nozlib.phar -nd -P pear/
129+
else
130+
$ECHO_N "Missing wget binary needed for pear download";
131+
exit 0;
132+
fi
133+
125134
cd $MY_OLDPWD
126135
$ECHO_N "makedist: making gzipped tar archive...$ECHO_C"
127136
rm -f $ARCHIVE.gz

0 commit comments

Comments
 (0)