-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zfcleanup.bat
32 lines (27 loc) · 954 Bytes
/
zfcleanup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal
set WORK_DIR=%~dp0
set ZF_ROOT_PATH=%WORK_DIR%\..\ZFFramework
set CLEAN_WHAT=%~1%
set _CLEANUP_build=0
if not defined CLEAN_WHAT (
set _CLEANUP_build=1
) else (
if "%CLEAN_WHAT%" == "build" set _CLEANUP_build=1
)
if %_CLEANUP_build% == 1 (
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%" "zfautoscript_cleanup*.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%\ZFModule" "zfautoscript_cleanup*.zfsh"
)
set _CLEANUP_zf3rd=0
if not defined CLEAN_WHAT (
set _CLEANUP_zf3rd=1
) else (
if "%CLEAN_WHAT%" == "zf3rd" set _CLEANUP_zf3rd=1
)
if %_CLEANUP_zf3rd% == 1 (
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%" "zfautoscript_zf3rd_cleanup*.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%\ZFModule" "zfautoscript_zf3rd_cleanup*.zfsh"
)
rmdir /s/q "%WORK_DIR%\_release" >nul 2>&1
rmdir /s/q "%WORK_DIR%\_tmp" >nul 2>&1