From dac35b5203555bff32ac519aab2f7d4c75c8ef37 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 27 Aug 2009 20:27:29 +0200 Subject: [PATCH] Made windows compile script. --- compile.bat | 20 ++++++++++++++++++++ updateversion.bat | 1 + 2 files changed, 21 insertions(+) create mode 100644 compile.bat 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