Annotation of /trunk/runprebuild2008.bat
Parent Directory
|
Revision Log
Revision 49 - (view) (download)
| 1 : | jhurliman | 49 | @echo off |
| 2 : | :: | ||
| 3 : | :: Prebuild generator for the OpenMetaverse Library | ||
| 4 : | :: | ||
| 5 : | :: Command Line Options: | ||
| 6 : | :: (none) - create solution/project files and create compile.bat file to build solution | ||
| 7 : | :: msbuild - Create project files, compile solution | ||
| 8 : | :: msbuild runtests - create project files, compile solution, run unit tests | ||
| 9 : | :: msbuild docs - create project files, compile solution, build API documentation | ||
| 10 : | :: | ||
| 11 : | :: nant - Create project files, run nant to compile solution | ||
| 12 : | :: nant runtests - Create project files, run nant to compile solution, run unit tests | ||
| 13 : | :: | ||
| 14 : | |||
| 15 : | echo ########################################## | ||
| 16 : | echo creating prebuild files for: nant, vs2008 | ||
| 17 : | echo Parameters: %1 %2 | ||
| 18 : | echo ########################################## | ||
| 19 : | |||
| 20 : | :: run prebuild to generate solution/project files from prebuild.xml configuration file | ||
| 21 : | Prebuild.exe /target nant | ||
| 22 : | Prebuild.exe /target vs2008 | ||
| 23 : | |||
| 24 : | :: build compile.bat file based on command line parameters | ||
| 25 : | echo @echo off > compile.bat | ||
| 26 : | if(.%1)==(.) echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild CableBeach.sln >> compile.bat | ||
| 27 : | |||
| 28 : | if(.%1)==(.msbuild) echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild /p:Configuration=Release CableBeach.sln >> compile.bat | ||
| 29 : | if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat | ||
| 30 : | |||
| 31 : | if(.%1)==(.nant) echo nant >> compile.bat | ||
| 32 : | if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat | ||
| 33 : | |||
| 34 : | if(.%2)==(.docs) echo SandCastleBuilderConsole.exe docs\CableBeach-docs.shfb >> compile.bat | ||
| 35 : | if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat | ||
| 36 : | if(.%2)==(.docs) echo 7za.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat | ||
| 37 : | if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat | ||
| 38 : | |||
| 39 : | if(.%2)==(.runtests) echo "nunit-console.exe" /nologo /nodots bin\CableBeach.Tests.dll >> compile.bat | ||
| 40 : | if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat | ||
| 41 : | |||
| 42 : | echo :SUCCESS >> compile.bat | ||
| 43 : | echo echo Build Successful! >> compile.bat | ||
| 44 : | echo exit /B 0 >> compile.bat | ||
| 45 : | echo :FAIL >> compile.bat | ||
| 46 : | echo echo Build Failed, check log for reason >> compile.bat | ||
| 47 : | echo exit /B 1 >> compile.bat | ||
| 48 : | |||
| 49 : | :: perform the appropriate action | ||
| 50 : | if(.%1)==(.msbuild) compile.bat | ||
| 51 : | if(.%1)==(.nant) compile.bat |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

