-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.cmd
33 lines (28 loc) · 950 Bytes
/
test.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
@set ORIGFOLDER=%CD%
@set CMD_LC_ROOT=%~dp0
@set VBSPEXTRAS=-notjunc
@call common.cmd
@cd /d "%CMD_LC_ROOT%"
:docopy
@set targetvmf=%mapfolder%\ci.vmf
@set targetbsp=%mapfolder%\ci.bsp
@set leakfile=%mapfolder%\ci.lin
@del /Q /F "%targetvmf%" 2>nul >nul
@del /Q /F "%targetbsp%" 2>nul >nul
del /Q /F "%leakfile%"
@COPY "%mapfolder%\%mapfile%.vmf" "%targetvmf%" >nul
@if ERRORLEVEL 1 goto failed
extras\vmfii "%targetvmf%" "%targetvmf%" --fgd "%FGDS%" > nul
@if ERRORLEVEL 1 goto failed
"%compilers_dir%\vbsp.exe" %VBSPEXTRAS% -allowdynamicpropsasstatic -leaktest -low "%targetvmf%"
@if ERRORLEVEL 1 goto failed
@if NOT exist "%targetbsp%" goto failed
@if exist "%leakfile%" goto failed
"%compilers_dir%\vvis.exe" -fast -low "%targetvmf%"
@if ERRORLEVEL 1 goto failed
"%compilers_dir%\vrad.exe" -low %VRADLDR% -noskyboxrecurse -bounce 1 -noextra -fastambient -fast -ldr "%targetvmf%"
@if ERRORLEVEL 1 goto failed
@goto ok
:failed
@exit 1
:ok