8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 05:23:03 +01:00

Make the VC++ Express build not show a popup everytime setenv.bat is called - one time is enough

This commit is contained in:
asfernandes 2009-06-17 15:37:28 +00:00
parent 846ccdeaab
commit 46ac36e36c

View File

@ -60,10 +60,12 @@ if DEFINED VS71COMNTOOLS (
::================= ::=================
:SET_MSVC_VER :SET_MSVC_VER
@vcexpress /? >nul 2>nul @if "%VS_VER_EXPRESS%" == "" (
@if not errorlevel 9009 ((set MSVC_VERSION=8) & (set VS_VER=msvc8) & (set VS_VER_EXPRESS=1) & (goto :SET_FB_TARGET_PLATFORM)) @vcexpress /? >nul 2>nul
@if not errorlevel 9009 ((set MSVC_VERSION=8) & (set VS_VER=msvc8) & (set VS_VER_EXPRESS=1) & (goto :SET_FB_TARGET_PLATFORM))
@set VS_VER_EXPRESS= @set VS_VER_EXPRESS=
)
@for /f "delims=." %%a in ('@devenv /?') do ( @for /f "delims=." %%a in ('@devenv /?') do (
@for /f "tokens=6" %%b in ("%%a") do ((set MSVC_VERSION=%%b) & (set VS_VER=msvc%%b) & (goto :SET_FB_TARGET_PLATFORM)) @for /f "tokens=6" %%b in ("%%a") do ((set MSVC_VERSION=%%b) & (set VS_VER=msvc%%b) & (goto :SET_FB_TARGET_PLATFORM))