forked from FWGS/quakewrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.bat
42 lines (33 loc) · 885 Bytes
/
release.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
@echo off
set MSDEV=BuildConsole
set CONFIG=/ShowTime /ShowAgent /nologo /cfg=
set MSDEV=msdev
set CONFIG=/make
set build_type=release
set BUILD_ERROR=
call vcvars32
%MSDEV% cl_dll/cl_dll.dsp %CONFIG%"client - Win32 Release" %build_target%
if errorlevel 1 set BUILD_ERROR=1
%MSDEV% dlls/progs.dsp %CONFIG%"progs - Win32 Release" %build_target%
if errorlevel 1 set BUILD_ERROR=1
if "%BUILD_ERROR%"=="" goto build_ok
echo *********************
echo *********************
echo *** Build Errors! ***
echo *********************
echo *********************
echo press any key to exit
echo *********************
pause>nul
goto done
@rem
@rem Successful build
@rem
:build_ok
rem delete log files
if exist cl_dll\cl_dll.plg del /f /q cl_dll\cl_dll.plg
if exist dlls\progs.plg del /f /q dlls\progs.plg
echo
echo Build succeeded!
echo
:done