Skip to content

Commit

Permalink
update cygwin-config-ext.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 11, 2025
1 parent b636682 commit 88c2fc5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sapi/scripts/cygwin/cygwin-config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,20 @@ mkdir -p ${WORK_DIR}/ext/imagick/
tar --strip-components=1 -C ${WORK_DIR}/ext/imagick/ -xf imagick-${IMAGICK_VERSION}.tgz

cd ${__PROJECT__}
# clean extension folder
NO_BUILT_IN_EXTENSIONS=$(ls ${WORK_DIR}/ext/)
for EXT_NAME in $NO_BUILT_IN_EXTENSIONS
do
echo "extnaion name: $EXT_NAME "
test -d ${__PROJECT__}/ext/${EXT_NAME} && rm -rf ${__PROJECT__}/ext/${EXT_NAME}
done

cd ${__PROJECT__}
# copy extension
# cp -rf var/cygwin-build/ext/* ext/
cp -rf ${WORK_DIR}/ext/* ${__PROJECT__}/ext/

# extension hook


cd ${__PROJECT__}

0 comments on commit 88c2fc5

Please sign in to comment.