This repository has been archived by the owner on May 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
clean.bat
147 lines (119 loc) · 3.25 KB
/
clean.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@echo off
REM SPDX-License-Identifier: MIT
REM The content of this file has been developed in the context of the MOSIM research project.
REM Original author(s): Janis Sprenger, Bhuvaneshwaran Ilanthirayan
call deploy_variables.bat
REM Checking environment variables
if not defined DEVENV (
ECHO [31mDEVENV Environment variable pointing to the Visual Studio 2017 devenv.exe is missing.[0m
ECHO e.g. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.com"
pause
exit /b 1
) else (
if not exist "%DEVENV%" (
ECHO Visual Studio does not seem to be installed at "%DEVENV%" or path name in deploy_variables.bat is wrong.
exit /b 2
)
)
@REM Clean folder structure
IF EXIST build (
RD /S/Q build
)
SET WORKDIR=%~dp0
@REM Core
@REM Clean Unity Engine Support
cd Core\Framework\EngineSupport\Unity
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean Adapters
cd Core\Framework\LanguageSupport\cs
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean Launcher
cd Core\Launcher
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean MMUs
cd Core\BasicMMus\CS-MMUs\CS
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Remove core artifacts from services
if EXIST Services\MMICSharp (
RD /S/Q Services\MMICSharp
)
@REM Clean Services
@REM Clean BlenderIK Service
cd .\Services\BlenderIK
call clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean CoordinateSystemMapper
cd .\Services\CoordinateSystemMapper
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean PostureBlendingService
cd .\Services\PostureBlendingService
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean RetargetingService
cd .\Services\RetargetingService
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
@REM Clean unityPathPlanning
cd .\Services\UnityPathPlanning
call .\clean.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
cd .\Core
call .\remove_unity.bat
if %ERRORLEVEL% NEQ 0 (
ECHO [31mThere has been an error during cleanup! [0m
cd %WORKDIR%
exit /b %ERRORLEVEL%
)
cd %WORKDIR%
ECHO [92mSuccessfully cleaned the Framework to the initiate the deployment process. Run deploy.bat script to start deployment process [0m
pause