mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2025-01-22 13:51:29 +01:00
Switch to src only for snuffleupagus
We can't assume that any other present or future package won't contain a "src" directory we shouldn't "cd" into. Also, we have to invoke "cd" just once, otherwise the next "cd -" will enter the wrong directory.
This commit is contained in:
parent
7306861194
commit
7ffbb142a4
@ -1008,8 +1008,14 @@ getPackageSource() {
|
||||
installModuleFromSource() {
|
||||
printf '### INSTALLING MODULE %s FROM SOURCE CODE ###\n' "$1"
|
||||
installModuleFromSource_dir="$(getPackageSource "$2")"
|
||||
cd "$installModuleFromSource_dir"
|
||||
[ -d "$installModuleFromSource_dir"/src ] && cd src
|
||||
case "$1" in
|
||||
snuffleupagus)
|
||||
cd "$installModuleFromSource_dir/src"
|
||||
;;
|
||||
*)
|
||||
cd "$installModuleFromSource_dir"
|
||||
;;
|
||||
esac
|
||||
phpize
|
||||
./configure $3 CFLAGS="${4:-}"
|
||||
make -j$(nproc) install
|
||||
|
Loading…
x
Reference in New Issue
Block a user