-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zfsetup.bat
24 lines (18 loc) · 1.01 KB
/
zfsetup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
setlocal
set WORK_DIR=%~dp0
set ZF_ROOT_PATH=%WORK_DIR%\..\ZFFramework
if not exist "%ZF_ROOT_PATH%\tools" (
rmdir /s/q "%ZF_ROOT_PATH%" >nul 2>&1
git clone "https://github.com/ZFFramework/ZFFramework.git" "%ZF_ROOT_PATH%"
)
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%ZF_ROOT_PATH%" "zfautoscript_zf3rd_setup*.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%ZF_ROOT_PATH%\ZFModule" "zfautoscript_zf3rd_setup*.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%ZF_ROOT_PATH%" "zfautoscript_zfmodule.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%ZF_ROOT_PATH%\ZFModule" "zfautoscript_zfmodule.zfsh"
for %%i in (%ZF_ROOT_PATH%) do set ABS_ZF_ROOT_PATH=%%~fi
for %%i in (%WORK_DIR%) do set ABS_WORK_DIR=%%~fi
if not %ABS_ZF_ROOT_PATH% == %ABS_WORK_DIR% (
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%" "zfautoscript_zf3rd_setup*.zfsh"
call "%ZF_ROOT_PATH%\tools\common\zfsh_recursive.bat" "%WORK_DIR%" "zfautoscript_zfmodule.zfsh"
)