@echo off
@echo === Setup by Botox ===
ping -n 2 localhost >nul
color 0b
:: Check if we already have the tools in the environment
if exist "%VCINSTALLDIR%" (
goto compile
)
:: Check for Visual Studio
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
:: Setup the environment
: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 Server ===
@call bam.exe server_release
@echo === Finished ===
echo.
:: Ending/Or not

@echo Press any Key to Compile again...
@pause >nul
color 0c
@echo === Again

===
@ping -n 2 localhost >nul
color 0a
cls
goto compile
Нажмите, чтобы раскрыть...