OSDN Git Service

Update runprebuild*.bat to reflect switch to .NET 4.0, remove vs2008 prebuild
authorLatif Khalifa <latifer@streamgrid.net>
Fri, 24 Jul 2015 19:39:20 +0000 (21:39 +0200)
committerLatif Khalifa <latifer@streamgrid.net>
Fri, 24 Jul 2015 19:39:20 +0000 (21:39 +0200)
runprebuild2008.bat [deleted file]
runprebuild2010.bat
runprebuild2012.bat

diff --git a/runprebuild2008.bat b/runprebuild2008.bat
deleted file mode 100755 (executable)
index c37ba44..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-@echo off\r
-::\r
-:: Prebuild generator for the Radegast\r
-::\r
-:: Command Line Options:\r
-:: (none)            - create solution/project files and create compile.bat file to build solution\r
-:: msbuild           - Create project files, compile solution\r
-:: msbuild runtests  - create project files, compile solution, run unit tests\r
-:: msbuild docs      - create project files, compile solution, build API documentation\r
-:: msbuild docs dist - Create project files, compile solution, run unit tests, build api documentation, create binary zip\r
-::                   - and exe installer\r
-::\r
-:: nant                     - Create project files, run nant to compile solution\r
-:: nant runtests     - Create project files, run nant to compile solution, run unit tests\r
-::\r
-\r
-echo ##########################################\r
-echo creating prebuild files for: vs2008\r
-echo Parameters: %1 %2\r
-echo ##########################################\r
-\r
-if not exist bin mkdir bin\r
-\r
-:: run prebuild to generate solution/project files from prebuild.xml configuration file\r
-Radegast\prebuild.exe /target vs2008\r
-\r
-:: build compile.bat file based on command line parameters\r
-echo @echo off > compile.bat\r
-if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild Radegast.sln >> compile.bat\r
-\r
-if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat\r
-if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat\r
-if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
-\r
-if(.%1)==(.nant) echo nant >> compile.bat\r
-if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
-\r
-if(.%3)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat\r
-if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat\r
-if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
-if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat\r
-if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
-\r
-if(.%2)==(.runtests) echo echo ==== UNIT TESTS BEGIN ==== >> compile.bat\r
-if(.%2)==(.runtests) echo nunit-console bin\Radegast.Tests.dll /exclude:Network /nodots /labels /xml:testresults.xml >> compile.bat\r
-\r
-if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
-\r
-if not (.%2)==(.dist) goto NODIST\r
-echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat\r
-copy Radegast\radegast.nsi bin\r
-echo del /q Radegast-*-installer.exe >> compile.bat\r
-echo del /q radegast-latest.zip >> compile.bat\r
-\r
-if not exist "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" goto NOUNINSIS\r
-echo "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" bin\radegast.nsi >> compile.bat\r
-goto NONSIS\r
-:NOUNINSIS\r
-\r
-if not exist "%PROGRAMFILES%\NSIS\makensis.exe" goto NONSIS\r
-echo "%PROGRAMFILES%\NSIS\makensis.exe" bin\radegast.nsi >> compile.bat\r
-:NONSIS\r
-\r
-echo cd bin >> compile.bat\r
-echo 7z.exe a -r -tzip ..\radegast-latest.zip *.* >> compile.bat\r
-echo cd .. >> compile.bat\r
-\r
-:NODIST\r
-\r
-echo :SUCCESS >> compile.bat\r
-echo echo Build Successful! >> compile.bat\r
-echo exit /B 0 >> compile.bat\r
-echo :FAIL >> compile.bat\r
-echo echo Build Failed, check log for reason >> compile.bat\r
-echo exit /B 1 >> compile.bat\r
-\r
-:: perform the appropriate action\r
-if(.%1)==(.msbuild) compile.bat\r
-if(.%1)==(.nant) compile.bat\r
-if(.%1)==(.dist) compile.bat\r
-\r
index 688e0e8..4efffe1 100755 (executable)
@@ -26,17 +26,17 @@ Radegast\prebuild.exe /target vs2010
 \r
 :: build compile.bat file based on command line parameters\r
 echo @echo off > compile.bat\r
-if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild Radegast.sln >> compile.bat\r
+if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild Radegast.sln >> compile.bat\r
 \r
 if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat\r
-if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat\r
+if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat\r
 if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
 \r
 if(.%1)==(.nant) echo nant >> compile.bat\r
 if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
 \r
 if(.%3)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat\r
-if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat\r
+if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat\r
 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
 if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat\r
 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat\r
index b7c5246..c532f61 100755 (executable)
@@ -26,17 +26,17 @@ Radegast\prebuild.exe /target vs2012
 
 :: build compile.bat file based on command line parameters
 echo @echo off > compile.bat
-if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\msbuild Radegast.sln >> compile.bat
+if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild Radegast.sln >> compile.bat
 
 if(.%1)==(.msbuild) echo echo ==== COMPILE BEGIN ==== >> compile.bat
-if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat
+if(.%1)==(.msbuild) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release Radegast.sln >> compile.bat
 if(.%1)==(.msbuild) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
 
 if(.%1)==(.nant) echo nant >> compile.bat
 if(.%1)==(.nant) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
 
 if(.%3)==(.docs) echo echo ==== GENERATE DOCUMENTATION BEGIN ==== >> compile.bat
-if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat
+if(.%2)==(.docs) echo %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release docs\Radegast.shfbproj >> compile.bat
 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat
 if(.%2)==(.docs) echo 7z.exe a -tzip docs\documentation.zip docs\trunk >> compile.bat
 if(.%2)==(.docs) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat