mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
format new lines
This commit is contained in:
parent
2638a00508
commit
7e13ba841d
1 changed files with 18 additions and 16 deletions
34
INSTALL.sh
34
INSTALL.sh
|
|
@ -129,9 +129,7 @@ if [[ $BUILD_PHP_SRC == "y" ]]; then
|
||||||
--enable-pcntl
|
--enable-pcntl
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
make -j $(nproc)
|
make -j $(nproc)
|
||||||
|
|
||||||
make install
|
make install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -154,14 +152,18 @@ cd "$DIR_PHP_CPP_SOURCE"
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
## Replace installation paths in PHP-CPP Makefile
|
## Replace installation paths in PHP-CPP Makefile
|
||||||
sed -i "/PHP_CONFIG = /c\
|
sed -i "/\
|
||||||
PHP_CONFIG = \"$DIR_PHP_SRC_TARGET/bin/php-config\"" "$DIR_PHP_CPP_SOURCE/Makefile"
|
PHP_CONFIG = /c\
|
||||||
|
PHP_CONFIG = \"$DIR_PHP_SRC_TARGET/bin/php-config\"" "$DIR_PHP_CPP_SOURCE/Makefile"
|
||||||
|
|
||||||
sed -i "/INSTALL_PREFIX = /c\
|
sed -i "/\
|
||||||
INSTALL_PREFIX = \"$DIR_PHP_CPP_TARGET\"" "$DIR_PHP_CPP_SOURCE/Makefile"
|
INSTALL_PREFIX = /c\
|
||||||
|
INSTALL_PREFIX = \"$DIR_PHP_CPP_TARGET\"" "$DIR_PHP_CPP_SOURCE/Makefile"
|
||||||
|
|
||||||
## Disable ldconfig
|
## Disable ldconfig
|
||||||
sed -i "s/ldconfig;/@echo \"ldconfig disabled by local configuration\";/g" "$DIR_PHP_CPP_SOURCE/Makefile"
|
sed -i "s/\
|
||||||
|
ldconfig;/\
|
||||||
|
@echo \"ldconfig disabled by local configuration\";/g" "$DIR_PHP_CPP_SOURCE/Makefile"
|
||||||
|
|
||||||
## Force build for new installation
|
## Force build for new installation
|
||||||
if [ ! -d "$DIR_PHP_CPP_TARGET" ]; then BUILD_PHP_CPP="y"
|
if [ ! -d "$DIR_PHP_CPP_TARGET" ]; then BUILD_PHP_CPP="y"
|
||||||
|
|
@ -174,9 +176,7 @@ fi
|
||||||
## Install PHP-CPP
|
## Install PHP-CPP
|
||||||
if [[ $BUILD_PHP_CPP == "y" ]]; then
|
if [[ $BUILD_PHP_CPP == "y" ]]; then
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
make -j $(nproc)
|
make -j $(nproc)
|
||||||
|
|
||||||
make install
|
make install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -199,15 +199,19 @@ cd "$DIR_PHP_GTK_SOURCE"
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
## Replace installation paths
|
## Replace installation paths
|
||||||
sed -i "/EXTENSION_DIR = /c\
|
sed -i "/\
|
||||||
EXTENSION_DIR = \"$($DIR_PHP_SRC_TARGET/bin/php-config --extension-dir)\"" "$DIR_PHP_GTK_SOURCE/Makefile"
|
EXTENSION_DIR = /c\
|
||||||
|
EXTENSION_DIR = \"$($DIR_PHP_SRC_TARGET/bin/php-config --extension-dir)\"" "$DIR_PHP_GTK_SOURCE/Makefile"
|
||||||
|
|
||||||
## Disable INI
|
## Disable INI
|
||||||
sed -i "/INI_DIR = /c\
|
sed -i "/\
|
||||||
INI_DIR = /dev/null" "$DIR_PHP_GTK_SOURCE/Makefile"
|
INI_DIR = /c\
|
||||||
|
INI_DIR = /dev/null" "$DIR_PHP_GTK_SOURCE/Makefile"
|
||||||
|
|
||||||
## Use local builds
|
## Use local builds
|
||||||
sed -i "s|LINKER_DEPENDENCIES = -lphpcpp|LINKER_DEPENDENCIES = -Wl,-rpath=\"$DIR_PHP_CPP_TARGET/lib\" -lphpcpp|g" "$DIR_PHP_GTK_SOURCE/Makefile"
|
sed -i "s|\
|
||||||
|
LINKER_DEPENDENCIES = -lphpcpp|\
|
||||||
|
LINKER_DEPENDENCIES = -Wl,-rpath=\"$DIR_PHP_CPP_TARGET/lib\" -lphpcpp|g" "$DIR_PHP_GTK_SOURCE/Makefile"
|
||||||
|
|
||||||
## Force build for new installation
|
## Force build for new installation
|
||||||
if [ ! -f "$("$DIR_PHP_SRC_TARGET/bin/php-config" --extension-dir)/php-gtk3.so" ]; then BUILD_PHP_GTK="y"
|
if [ ! -f "$("$DIR_PHP_SRC_TARGET/bin/php-config" --extension-dir)/php-gtk3.so" ]; then BUILD_PHP_GTK="y"
|
||||||
|
|
@ -220,9 +224,7 @@ fi
|
||||||
## Install PHP-GTK
|
## Install PHP-GTK
|
||||||
if [[ $BUILD_PHP_GTK == "y" ]]; then
|
if [[ $BUILD_PHP_GTK == "y" ]]; then
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
make -j $(nproc)
|
make -j $(nproc)
|
||||||
|
|
||||||
make install
|
make install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue