Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4874


Ignore:
Timestamp:
11/20/10 16:35:45 (14 years ago)
Author:
abeham
Message:

#1265

  • Updated build script with recent version in trunk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/Build.cmd

    r4831 r4874  
    11@ECHO OFF
    22
    3 REM == CONFIGURATION SECTION ==
    4 SET VSSOLUTION=HeuristicLab.Visualization.sln
    5 SET /P CONFIGURATION=Which configuration to build [Debug]:
     3SET /A COUNT=0
     4FOR /F "tokens=*" %%A IN ('dir /B *.sln') DO (
     5  CALL :forloopbody "%%A")
     6
     7IF "%COUNT%"=="1" (
     8  SET SELECTED=%SOLUTIONS.1%
     9  ECHO Building %SOLUTIONS.1% as it is the only solution that was found ...
     10  GOTO :config_platform_selection)
     11
     12ECHO Found the following solutions:
     13FOR /F "tokens=2* delims=.=" %%A IN ('SET SOLUTIONS.') DO ECHO %%A = %%B
     14ECHO.
     15SET /P SOLUTIONINDEX=Which solution to build (type the number):
     16
     17SET SELECTED=""
     18FOR /F "tokens=2* delims=.=" %%A IN ('SET SOLUTIONS.') DO (
     19IF "%%A"=="%SOLUTIONINDEX%" SET SELECTED=%%B)
     20
     21IF %SELECTED%=="" GOTO :eof
     22
     23:config_platform_selection
     24SET /P CONFIGURATION=Which configuration to build [Debug]:
    625IF "%CONFIGURATION%"=="" SET CONFIGURATION=Debug
    7 SET /P PLATFORM=Which platform to build [Any CPU]:
     26SET /P PLATFORM=Which platform to build [Any CPU]: 
    827IF "%PLATFORM%"=="" SET PLATFORM=Any CPU
    9 REM == END CONFIGURATION SECTION ==
    1028
    1129REM First find the path to the msbuild.exe by performing a registry query
    12 FOR /F "tokens=1,3 delims=   " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"') DO IF "%%A"=="MSBuildToolsPath" SET MSBUILDPATH=%%B
     30FOR /F "tokens=1,3 delims=   " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"') DO (
     31  IF "%%A"=="MSBuildToolsPath" SET MSBUILDPATH=%%B)
    1332
    1433REM Then execute msbuild to clean and build the solution
     
    1635SET MSBuildUseNoSolutionCache=1
    1736REM Run msbuild to clean and then build
    18 %MSBUILDPATH%msbuild.exe %VSSOLUTION% /target:Clean /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
    19 %MSBUILDPATH%msbuild.exe %VSSOLUTION% /target:Build /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
     37%MSBUILDPATH%msbuild.exe %SELECTED% /target:Clean /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
     38%MSBUILDPATH%msbuild.exe %SELECTED% /target:Build /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
    2039
    2140PAUSE
     41
     42GOTO :eof
     43
     44REM This workaround is necessary so that COUNT gets reevaluated
     45:forloopbody
     46SET /A COUNT+=1
     47SET SOLUTIONS.%COUNT%=%1
     48GOTO :eof
Note: See TracChangeset for help on using the changeset viewer.