Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 10, 2025
1 parent bc872fe commit 6765870
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions sapi/scripts/cygwin/cygwin-config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,24 @@ mkdir -p ext

cd ${__PROJECT__}/pool/ext
if [ ! -f redis-${REDIS_VERSION}.tgz ]; then
curl -fSLo redis-${REDIS_VERSION}.tgz https://pecl.php.net/get/redis-${REDIS_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/redis-${REDIS_VERSION}.tgz https://pecl.php.net/get/redis-${REDIS_VERSION}.tgz
mv ${BUILD_DIR}/redis-${REDIS_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/redis/
tar --strip-components=1 -C ${__PROJECT__}/ext/redis/ -xf redis-${REDIS_VERSION}.tgz

cd ${__PROJECT__}/pool/ext
if [ ! -f yaml-${YAML_VERSION}.tgz ]; then
curl -fSLo yaml-${YAML_VERSION}.tgz https://pecl.php.net/get/yaml-${YAML_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/yaml-${YAML_VERSION}.tgz https://pecl.php.net/get/yaml-${YAML_VERSION}.tgz
mv ${BUILD_DIR}/yaml-${YAML_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/yaml/
tar --strip-components=1 -C ${__PROJECT__}/ext/yaml/ -xf yaml-${YAML_VERSION}.tgz

cd ${__PROJECT__}/pool/ext
if [ ! -f imagick-${IMAGICK_VERSION}.tgz ]; then
curl -fSLo imagick-${IMAGICK_VERSION}.tgz https://pecl.php.net/get/imagick-${IMAGICK_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/imagick-${IMAGICK_VERSION}.tgz https://pecl.php.net/get/imagick-${IMAGICK_VERSION}.tgz
mv ${BUILD_DIR}/imagick-${IMAGICK_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/imagick/
tar --strip-components=1 -C ${__PROJECT__}/ext/imagick/ -xf imagick-${IMAGICK_VERSION}.tgz
Expand All @@ -73,8 +76,8 @@ if [ ! -f swoole-${SWOOLE_VERSION}.tgz ]; then
test -d ${BUILD_DIR}/swoole && rm -rf ${BUILD_DIR}/swoole
git clone -b ${SWOOLE_VERSION} https://github.com/swoole/swoole-src.git ${BUILD_DIR}/swoole
cd ${BUILD_DIR}/swoole
tar -czvf ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz .
cd ${__PROJECT__}/pool/ext
tar -czvf ${BUILD_DIR}/swoole-${SWOOLE_VERSION}.tgz .
mv ${BUILD_DIR}/swoole-${SWOOLE_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/swoole/
tar --strip-components=1 -C ${__PROJECT__}/ext/swoole/ -xf swoole-${SWOOLE_VERSION}.tgz
Expand Down
13 changes: 8 additions & 5 deletions sapi/scripts/msys2/config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,24 @@ mkdir -p ext

cd ${__PROJECT__}/pool/ext
if [ ! -f redis-${REDIS_VERSION}.tgz ]; then
curl -fSLo redis-${REDIS_VERSION}.tgz https://pecl.php.net/get/redis-${REDIS_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/redis-${REDIS_VERSION}.tgz https://pecl.php.net/get/redis-${REDIS_VERSION}.tgz
mv ${BUILD_DIR}/redis-${REDIS_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/redis/
tar --strip-components=1 -C ${__PROJECT__}/ext/redis/ -xf redis-${REDIS_VERSION}.tgz

cd ${__PROJECT__}/pool/ext
if [ ! -f yaml-${YAML_VERSION}.tgz ]; then
curl -fSLo yaml-${YAML_VERSION}.tgz https://pecl.php.net/get/yaml-${YAML_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/yaml-${YAML_VERSION}.tgz https://pecl.php.net/get/yaml-${YAML_VERSION}.tgz
mv ${BUILD_DIR}/yaml-${YAML_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/yaml/
tar --strip-components=1 -C ${__PROJECT__}/ext/yaml/ -xf yaml-${YAML_VERSION}.tgz

cd ${__PROJECT__}/pool/ext
if [ ! -f imagick-${IMAGICK_VERSION}.tgz ]; then
curl -fSLo imagick-${IMAGICK_VERSION}.tgz https://pecl.php.net/get/imagick-${IMAGICK_VERSION}.tgz
curl -fSLo ${BUILD_DIR}/imagick-${IMAGICK_VERSION}.tgz https://pecl.php.net/get/imagick-${IMAGICK_VERSION}.tgz
mv ${BUILD_DIR}/imagick-${IMAGICK_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/imagick/
tar --strip-components=1 -C ${__PROJECT__}/ext/imagick/ -xf imagick-${IMAGICK_VERSION}.tgz
Expand All @@ -73,8 +76,8 @@ if [ ! -f swoole-${SWOOLE_VERSION}.tgz ]; then
test -d ${BUILD_DIR}/swoole && rm -rf ${BUILD_DIR}/swoole
git clone -b ${SWOOLE_VERSION} https://github.com/swoole/swoole-src.git ${BUILD_DIR}/swoole
cd ${BUILD_DIR}/swoole
tar -czvf ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz .
cd ${__PROJECT__}/pool/ext
tar -czvf ${BUILD_DIR}/swoole-${SWOOLE_VERSION}.tgz .
mv ${BUILD_DIR}/swoole-${SWOOLE_VERSION}.tgz ${__PROJECT__}/pool/ext
fi
mkdir -p ${__PROJECT__}/ext/swoole/
tar --strip-components=1 -C ${__PROJECT__}/ext/swoole/ -xf swoole-${SWOOLE_VERSION}.tgz
Expand Down

0 comments on commit 6765870

Please sign in to comment.