forked from opensim/opensim
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tc-autobuild.bat
executable file
·37 lines (30 loc) · 813 Bytes
/
tc-autobuild.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@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
Prebuild.exe /target vs2008
IF NOT ERRORLEVEL 0 GOTO FAIL
%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild /t:Rebuild opensim.sln
IF NOT ERRORLEVEL 0 GOTO FAIL
IF NOT "%makearch%"=="yes" GOTO SkipArch
echo Build success, creating zip package
cd bin
rmdir /q /s fortis-opensim-autobuild
ren Debug fortis-opensim-autobuild
del /q fortis-opensim-autobuild.zip
7z -tzip a fortis-opensim-autobuild.zip fortis-opensim-autobuild
rmdir /q /s fortis-opensim-autobuild
cd ..
:SkipArch
:SUCCESS
exit /B 0
:FAIL
exit /B 1