openvpn/msvc-dev.bat
Alon Bar-Lev 6d2b65ad32 build: msvc: chdir with change drive to script location
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Message-Id: 1335639118-16671-1-git-send-email-alon.barlev@gmail.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6383
Signed-off-by: David Sommerseth <davids@redhat.com>
2012-06-29 10:26:15 +02:00

27 lines
400 B
Batchfile

@echo off
setlocal
cd /d %0\..
call msvc-env.bat
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