mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
More changes ;). Start.sh now supports the new compile path
This commit is contained in:
parent
55f4811847
commit
e7aea41f80
@ -234,8 +234,8 @@ if [ "$1" == "crosscompile" ]; then
|
|||||||
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-opcache=no"
|
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-opcache=no"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
./configure $OPTIMIZATION--prefix="$DIR/php5" \
|
./configure $OPTIMIZATION--prefix="$DIR/bin/php" \
|
||||||
--exec-prefix="$DIR/php5" \
|
--exec-prefix="$DIR/bin/php" \
|
||||||
--with-curl="$HAVE_CURL" \
|
--with-curl="$HAVE_CURL" \
|
||||||
--with-zlib="$DIR/install_data/php/ext/zlib" \
|
--with-zlib="$DIR/install_data/php/ext/zlib" \
|
||||||
--with-zlib-dir="$DIR/install_data/php/ext/zlib" \
|
--with-zlib-dir="$DIR/install_data/php/ext/zlib" \
|
||||||
|
9
start.sh
9
start.sh
@ -1,13 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
if [ -f ./php5/bin/php ]; then
|
if [ -f ./bin/php/php ]; then
|
||||||
mkdir -m 0777 bin/
|
./bin/php/php -d enable_dl=On PocketMine-MP.php $@
|
||||||
mv ./php5/bin/php ./bin/php
|
|
||||||
rm -r -f ./php5/
|
|
||||||
fi
|
|
||||||
if [ -f ./bin/php ]; then
|
|
||||||
./bin/php -d enable_dl=On PocketMine-MP.php $@
|
|
||||||
else
|
else
|
||||||
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
|
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
|
||||||
php -d enable_dl=On PocketMine-MP.php $@
|
php -d enable_dl=On PocketMine-MP.php $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user