@@ -11,9 +11,9 @@ __PROJECT__=$(
1111)
1212cd ${__PROJECT__}
1313
14- if [ ! " $BASH_VERSION " ] ; then
15- echo " Please use bash to run this script (bash $0 )" 1>&2
16- exit 1
14+ if [ ! " $BASH_VERSION " ]; then
15+ echo " Please use bash to run this script (bash $0 )" 1>&2
16+ exit 1
1717fi
1818
1919if [[ -f /.dockerenv ]]; then
@@ -24,17 +24,17 @@ GIT_BRANCH=$(git branch | grep '* ' | awk '{print $2}')
2424echo $GIT_BRANCH
2525ACTION=" none"
2626case $GIT_BRANCH in
27- ' build_native_php' | ' build_native_php_t' )
27+ ' build_native_php' | ' build_native_php_t' )
2828 ACTION=" delete"
2929 ;;
30- ' build_php_8.2' | ' build_php_8.1' | ' build_php_8.0' | ' build_php_7.4' | ' build_php_7.3' )
30+ ' build_php_8.2' | ' build_php_8.1' | ' build_php_8.0' | ' build_php_7.4' | ' build_php_7.3' )
3131 ACTION=" delete"
3232 ;;
3333' build_native_php_sfx_micro' )
3434 ACTION=" delete"
3535 ;;
3636* )
37- if git ls-files --error-unmatch " sapi/quickstart/clean-folder.sh" > /dev/null 2>&1 ; then
37+ if git ls-files --error-unmatch " sapi/quickstart/clean-folder.sh" > /dev/null 2>&1 ; then
3838 ACTION=" delete"
3939 else
4040 echo ' no need delete ext '
@@ -43,8 +43,6 @@ case $GIT_BRANCH in
4343
4444esac
4545
46-
47-
4846if [[ $ACTION = " delete" ]]; then
4947 cd ${__PROJECT__}
5048 test -d ext/ && rm -rf ext/*
@@ -74,5 +72,16 @@ if [[ $ACTION = "delete" ]]; then
7472 test -f conftest.c && rm -rf conftest.c
7573 test -d scripts && rm -rf scripts
7674 test -d sapi/cli && rm -rf sapi/cli/
75+ test -f APP_VERSION && rm -f APP_VERSION
76+ test -f composer.lock && rm -f composer.lock
77+ test -f .gitmodules && rm -f .gitmodules
78+ test -f cppflags.log && rm -f cppflags.log
79+ test -f ldflags.log && rm -f ldflags.log
80+ test -f libs.log && rm -f libs.log
81+ test -f make.sh && rm -f make.sh
82+ test -f make-env.sh && rm -f make-env.sh
83+ test -f make-export-variables.sh && rm -f make-export-variables.sh
84+ test -f make-install-deps.sh && rm -f make-install-deps.sh
85+ test -f libs.log && rm -f libs.log
7786 echo $?
7887fi
0 commit comments