diff --git a/compile.bat b/compile.bat new file mode 100644 index 0000000..925e5e3 --- /dev/null +++ b/compile.bat @@ -0,0 +1,20 @@ +@echo off + +set SOURCEDIR=src +set SMINCLUDES=env\include +set BUILDDIR=build +set SPCOMP=env\win32\bin\spcomp.exe +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: +%SPCOMP% -i%SOURCEDIR% -i%SOURCEDIR%/include -i%SMINCLUDES% -o%BUILDDIR%/zombiereloaded.smx %SOURCEDIR%\zombiereloaded.sp diff --git a/updateversion.bat b/updateversion.bat index 09d9f34..f9a6c09 100644 --- a/updateversion.bat +++ b/updateversion.bat @@ -10,3 +10,4 @@ REM Converts a windows path to a linux path for cygwin (/cygdrive/c/...). for /f %%s in ('env\win32\bin\cygpath.exe -u "%DATEPATH%"') do set DATEPATH=%%s %BASH% updateversion.sh %DATEPATH% +exit