diff options
author | Alon Bar-Lev | 2012-03-24 09:58:36 +0200 |
---|---|---|
committer | David Sommerseth | 2012-03-29 12:31:10 +0200 |
commit | 3c1971de878bb3658c38b0504f314d38b6b765d2 (patch) | |
tree | 49ceebe669352cf39824ce95ff8bd717008e0c4a /msvc-dev.bat | |
parent | 7cacdfd4b7f221139e0d2a0334f1f1cd8f2a1b75 (diff) | |
download | openvpn-3c1971de878bb3658c38b0504f314d38b6b765d2.zip openvpn-3c1971de878bb3658c38b0504f314d38b6b765d2.tar.gz |
build: msvc: upgrade to Visual Studio 2010 + fixups
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'msvc-dev.bat')
-rw-r--r-- | msvc-dev.bat | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/msvc-dev.bat b/msvc-dev.bat index 671a56d..4dac172 100644 --- a/msvc-dev.bat +++ b/msvc-dev.bat @@ -4,6 +4,23 @@ setlocal cd %0\.. call msvc-env.bat -start "" "%VSHOME%\Common7\IDE\devenv.exe" %SOLUTION% +if exist "%VSHOME%\Common7\IDE\VCExpress.exe" ( + set IDE=%VSHOME%\Common7\IDE\VCExpress.exe +) else if exist "%VSHOME%\Common7\IDE\devenv.exe" ( + set IDE=%VSHOME%\Common7\IDE\devenv.exe +) else ( + echo "Cannot detect visual studio environment" + goto error +) +start "" "%IDE%" "%SOLUTION%" + +exit /b 0 +goto end + +:error +exit /b 1 +goto end + +:end endlocal |