Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4873 for trunk


Ignore:
Timestamp:
11/20/10 16:34:15 (13 years ago)
Author:
abeham
Message:

#1285

  • Updated build script to auto select the .sln file if only one was found
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/Build.cmd

    r4863 r4873  
    44FOR /F "tokens=*" %%A IN ('dir /B *.sln') DO (
    55  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)
    611
    712ECHO Found the following solutions:
     
    1621IF %SELECTED%=="" GOTO :eof
    1722
     23:config_platform_selection
    1824SET /P CONFIGURATION=Which configuration to build [Debug]:
    1925IF "%CONFIGURATION%"=="" SET CONFIGURATION=Debug
     
    2228
    2329REM First find the path to the msbuild.exe by performing a registry query
    24 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)
    2532
    2633REM Then execute msbuild to clean and build the solution
Note: See TracChangeset for help on using the changeset viewer.