2014-07-30 11:03:42 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set SOURCEDIR=src
|
|
|
|
set SMINCLUDES=env\include
|
|
|
|
set BUILDDIR=build
|
2016-08-23 15:34:00 +02:00
|
|
|
set SPCOMP=env\win32\bin\spcomp.exe
|
2014-07-30 11:03:42 +02:00
|
|
|
set VERSIONDUMP=updateversion.bat
|
|
|
|
|
|
|
|
:: Dump version and revision information first.
|
|
|
|
echo Updating version and revision info...
|
|
|
|
start /wait %VERSIONDUMP%
|
|
|
|
|
|
|
|
:: Make build directory.
|
|
|
|
if not exist "%BUILDDIR%" (
|
|
|
|
mkdir %BUILDDIR%
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Compile.
|
|
|
|
echo Starting compiler:
|
2019-09-27 13:14:44 +02:00
|
|
|
%SPCOMP% -w241 -i%SOURCEDIR% -i%SOURCEDIR%/include -i%SMINCLUDES% -o%BUILDDIR%/zombiereloaded.smx %SOURCEDIR%\zombiereloaded.sp
|
2014-07-30 11:03:42 +02:00
|
|
|
|
|
|
|
echo Compiling done. This script is looped, close if you're done.
|
|
|
|
pause
|
|
|
|
|
|
|
|
compile.bat
|