fix multi version bug

This commit is contained in:
root
2021-04-28 16:25:04 +08:00
parent 6b258bee6b
commit 50e5cea9fb
2 changed files with 5 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ _build_dir="$_main_dir/build"
mkdir "$_build_dir" > /dev/null 2>&1
for loop in "7.4.18" "8.0.5"
for loop in "7.3.28" "7.4.18" "8.0.5"
do
sed -i 's/_php_ver=.*/_php_ver="'$loop'"/g' "$_main_dir""static-compile-php.sh" && \
sed -i 's/phpver"|"php") echo ".*/phpver"|"php") echo "'$loop'" ;;/g' "$_main_dir""static-compile-php.sh" && \
rm -rf "$_main_dir""source/php.tar.gz" "$_main_dir""source/php-*" "$_main_dir""php-dist" && \
"$_main_dir""static-compile-php.sh" && \
cp "$_main_dir""php-dist/bin/php" "$_build_dir/" && \
@@ -20,4 +20,4 @@ do
echo "Compile static php-$loop failed!"
exit 1
fi
done
done