-
Notifications
You must be signed in to change notification settings - Fork 1
/
ZbResetAll.cmd
42 lines (31 loc) · 1.22 KB
/
ZbResetAll.cmd
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
32
33
34
35
36
37
38
39
40
41
42
@echo off
echo ********************************************************************************
echo Wipe and reinitialise the database with the basic modules.
echo Changes to the object model are generated.
echo Use this to create a clean environment.
echo ********************************************************************************
set config=
if .%1. == .. GOTO GOON
set config=%1
:GOON
call "ZbInstall" %config%
cd bin\Debug
Zetbox.Cli.exe %config% -fallback -wipe
IF ERRORLEVEL 1 GOTO FAIL1
cd ..\..
call "ZbDeployAll" %config%
IF ERRORLEVEL 1 GOTO FAIL2
echo ********************************************************************************
echo ************************************ Success ***********************************
echo ********************************************************************************
GOTO EOF
:FAIL1
cd ..\..
:FAIL2
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX FAIL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
echo Aborting Reset
rem return error without closing parent shell
echo A | choice /c:A /n
:EOF