Allow building specific commits

This commit is contained in:
Andreas Braun 2021-01-25 13:46:50 +01:00 committed by Shivam Mathur
parent 26791e8412
commit fd62612e9e
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -279,8 +279,10 @@ add_extension_from_github() {
( (
add_devtools phpize add_devtools phpize
delete_extension "$extension" delete_extension "$extension"
git clone --recurse-submodules -b "$release" https://github.com/"$org"/"$repo" /tmp/"$repo-$release" || exit 1 git clone -n https://github.com/"$org"/"$repo" /tmp/"$repo-$release" || exit 1
cd /tmp/"$repo-$release" || exit 1 cd /tmp/"$repo-$release" || exit 1
git checkout "$release" || exit 1
git submodule update --init --recursive || exit 1
phpize && ./configure && make -j"$(nproc)" && sudo make install phpize && ./configure && make -j"$(nproc)" && sudo make install
enable_extension "$extension" "$prefix" enable_extension "$extension" "$prefix"
) >/dev/null 2>&1 ) >/dev/null 2>&1