Made windows compile script.
This commit is contained in:
parent
6fcc71aa90
commit
dac35b5203
20
compile.bat
Normal file
20
compile.bat
Normal 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
|
@ -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
|
for /f %%s in ('env\win32\bin\cygpath.exe -u "%DATEPATH%"') do set DATEPATH=%%s
|
||||||
|
|
||||||
%BASH% updateversion.sh %DATEPATH%
|
%BASH% updateversion.sh %DATEPATH%
|
||||||
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user