Browse code

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>

Alon Bar-Lev authored on 2012/04/29 03:51:58
Showing 3 changed files
... ...
@@ -4,6 +4,7 @@ rem Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
4 4
 @rem this stupid command needed for SetEnv.cmd to operate
5 5
 setlocal ENABLEDELAYEDEXPANSION
6 6
 
7
+cd /d %0\..
7 8
 call msvc-env.bat
8 9
 
9 10
 set PLATFORMS=Win32
... ...
@@ -1,7 +1,7 @@
1 1
 @echo off
2 2
 
3 3
 setlocal
4
-cd %0\..
4
+cd /d %0\..
5 5
 call msvc-env.bat
6 6
 
7 7
 if exist "%VSHOME%\Common7\IDE\VCExpress.exe" (
... ...
@@ -1,7 +1,5 @@
1 1
 @echo off
2 2
 
3
-cd %0\..
4
-
5 3
 rem Put your own settings at msvc-env-local.bat
6 4
 if exist msvc-env-local.bat call msvc-env-local.bat
7 5