-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.bat
57 lines (51 loc) · 917 Bytes
/
compile.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
@echo off
title Compliler for Windows
::
color 7c
echo fakeclient_release
echo penclient_release
echo vanillabot_release
set /p release=Type:
if exist "%VCINSTALLDIR%" (
goto compile
)
if exist "%VS100COMNTOOLS%" (
set VSPATH="%VS100COMNTOOLS%"
goto set_env
)
if exist "%VS90COMNTOOLS%" (
set VSPATH="%VS90COMNTOOLS%"
goto set_env
)
if exist "%VS80COMNTOOLS%" (
set VSPATH="%VS80COMNTOOLS%"
goto set_env
)
echo You need Microsoft Visual Studio 8, 9 or 10 installed
pause
exit
:set_env
if not exist %VSPATH%vsvars32.bat (
color 0a
cls
echo.
echo === An error occured! ===
echo.
pause >nul
exit
) else call %VSPATH%vsvars32.bat
:: Compile
:compile
echo.
@echo === Building Teeworlds %release% ===
@call bam.exe %release% -j 8
@echo === Finished === last: %time%
echo.
:: Ending/Or not :D
@echo Press any Key to Compile again...
@pause >nul
color 0a
@echo === Again :D ===
color 7c
cls
goto compile