Fetching contributors…
Cannot retrieve contributors at this time
33 lines (25 sloc) 697 Bytes
@echo off
set makearch=
set makedist=
rem Set flags according to passed command line params
:ParamLoop
IF "%1"=="" GOTO ParamContinue
IF "%1"=="arch" set makearch=yes
IF "%1"=="dist" set makedist=yes
SHIFT
GOTO ParamLoop
:ParamContinue
rem use .NET 3.5 to build
bin\Prebuild.exe /target vs2010 /targetframework v4_0 /conditionals NET_4_0
IF ERRORLEVEL 1 GOTO FAIL
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild /t:Rebuild Aurora.sln /p:DefineConstants="ISWIN;NET_4_0"
IF ERRORLEVEL 1 GOTO FAIL
IF NOT "%makearch%"=="yes" GOTO SkipArch
echo Build success, creating zip package
del /q aurora-autobuild.zip
7z -tzip a aurora-autobuild.zip bin
:SkipArch
:SUCCESS
exit /B 0
:FAIL
exit /B 1