mdserver-web/plugins/php/all_test.sh

52 lines
1.4 KiB
Bash
Raw Normal View History

2019-11-29 06:22:16 -05:00
#! /bin/sh
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
DIR=$(cd "$(dirname "$0")"; pwd)
2022-07-02 23:50:07 -04:00
2022-07-03 00:30:42 -04:00
# cd /www/server/mdserver-web/scripts/quick && bash debug.sh
2022-06-30 03:03:06 -04:00
# cd /www/server/mdserver-web/plugins/php && bash all_test.sh
2019-11-30 04:38:50 -05:00
2022-07-02 23:50:07 -04:00
# cd /www/server/mdserver-web/plugins/php/versions/52/ && bash gd.sh install 52
# cd /www/server/mdserver-web/plugins/php/versions/52/ && bash openssl.sh install 52
2022-06-30 13:24:52 -04:00
# cd /www/server/mdserver-web/plugins/php/versions/81/ && bash imagemagick.sh install 81
2022-06-30 22:37:54 -04:00
# cd /www/server/mdserver-web/plugins/php/versions/70/ && bash imagemagick.sh install 70
2022-07-02 04:44:54 -04:00
PHP_VER=52
echo "php${PHP_VER} -- start"
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
fi
done
echo "php${PHP_VER} -- end"
2022-06-30 22:37:54 -04:00
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81)
2022-06-30 03:03:06 -04:00
# PHP_VER_LIST=(81)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
if [ -d /www/server/php/${PHP_VER} ];then
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
2022-06-30 07:31:17 -04:00
for ii in $cmd_ext
2022-06-30 03:03:06 -04:00
do
2022-06-30 07:31:17 -04:00
echo "${ii}"
2022-06-30 03:03:06 -04:00
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
2022-06-30 07:31:17 -04:00
cd $DIR/versions/$PHP_VER/ && bash $ii install ${PHP_VER}
2022-06-30 03:03:06 -04:00
fi
done
2019-11-30 04:38:50 -05:00
fi
2022-06-30 03:03:06 -04:00
echo "php${PHP_VER} -- end"
2019-11-30 04:38:50 -05:00
done
2019-11-29 06:27:08 -05:00
2019-11-30 04:38:50 -05:00
rm -rf /tmp/t.log