X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=runprebuild2008.bat;h=c37ba44905032cc123c2d7a4f6d889c2b985f3c5;hb=896b94d8043e2fc1f4f8b921d9fe07e2527b7935;hp=f1fc1ab8d499b7141cf91c58ef668df25c27566a;hpb=c27cacbb84c9d8f68cedfd83365dec5bd88edb46;p=radegast%2Fradegast.git diff --git a/runprebuild2008.bat b/runprebuild2008.bat old mode 100644 new mode 100755 index f1fc1ab..c37ba44 --- a/runprebuild2008.bat +++ b/runprebuild2008.bat @@ -1,6 +1,6 @@ @echo off :: -:: Prebuild generator for the Radegast Library +:: Prebuild generator for the Radegast :: :: Command Line Options: :: (none) - create solution/project files and create compile.bat file to build solution @@ -22,11 +22,11 @@ echo ########################################## if not exist bin mkdir bin :: run prebuild to generate solution/project files from prebuild.xml configuration file -Radegast\Prebuild.exe /target vs2008 +Radegast\prebuild.exe /target vs2008 :: build compile.bat file based on command line parameters echo @echo off > compile.bat -if(.%1)==(.) echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild Radegast.sln >> compile.bat +if(.%1)==(.) echo %SystemRoot%\Microsoft.NET\Framework\v3.5\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 @@ -46,12 +46,26 @@ if(.%2)==(.runtests) echo nunit-console bin\Radegast.Tests.dll /exclude:Network if(.%2)==(.runtests) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat -:: nsis compiler needs to be in path -if(.%3)==(.dist) echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat -if(.%3)==(.dist) echo makensis.exe /DPlatform=test docs\Radegast-installer.nsi >> compile.bat -if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat -if(.%3)==(.dist) echo 7z.exe a -tzip dist\Radegast-dist.zip @docs\distfiles.lst >> compile.bat -if(.%3)==(.dist) echo IF ERRORLEVEL 1 GOTO FAIL >> compile.bat +if not (.%2)==(.dist) goto NODIST +echo echo ==== GENERATE DISTRIBUTION BEGIN ==== >> compile.bat +copy Radegast\radegast.nsi bin +echo del /q Radegast-*-installer.exe >> compile.bat +echo del /q radegast-latest.zip >> compile.bat + +if not exist "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" goto NOUNINSIS +echo "%PROGRAMFILES%\NSIS\Unicode\makensis.exe" bin\radegast.nsi >> compile.bat +goto NONSIS +:NOUNINSIS + +if not exist "%PROGRAMFILES%\NSIS\makensis.exe" goto NONSIS +echo "%PROGRAMFILES%\NSIS\makensis.exe" bin\radegast.nsi >> compile.bat +:NONSIS + +echo cd bin >> compile.bat +echo 7z.exe a -r -tzip ..\radegast-latest.zip *.* >> compile.bat +echo cd .. >> compile.bat + +:NODIST echo :SUCCESS >> compile.bat echo echo Build Successful! >> compile.bat