Made windows compile script.

This commit is contained in:
richard 2009-08-27 20:27:29 +02:00
parent 6fcc71aa90
commit dac35b5203
2 changed files with 21 additions and 0 deletions

20
compile.bat Normal file
View File

@ -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

View File

@ -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