# !bin/sh
trap "echo 'continuing'" EXIT
a=$(ls)
for s in $a
do
if test -d $s
then
cd $s
phpize
sleep 2
./configure --with-$s=/usr/local/lib/php/extensions/no-debug-zts-20170718/$s --with-php-config=/usr/local/bin/php-config
sleep 2
make
sleep 2
make install
sleep 2
cd ../
echo $s
fi
done
shell脚本放在ext脚本文件内,如果运行出现没有权限,则运行 chmod u+x *.sh