-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvcinitut.bat
More file actions
33 lines (29 loc) · 782 Bytes
/
vcinitut.bat
File metadata and controls
33 lines (29 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
call vcinit %*
if not defined __VC_DIR goto error
setlocal enabledelayedexpansion
set utdirs=UnitTest\;Auxiliary\VS\UnitTest\;
:search
set count=0
:search_loop
set /a count=count+1
set utdir=
for /f "tokens=%count% delims=;^ eol=" %%d in ("%utdirs%") do set utdir=%%d
if "!utdir!"=="" goto error
if not exist "!__VC_DIR!!utdir!" goto search_loop
:apply
for /f "tokens=1 delims=;^ eol=" %%a in ("!__VC_DIR!!utdir!;") do (
for /f "tokens=1 delims=^ eol=" %%i in ("!INCLUDE!") do (
for /f "tokens=1 delims=^ eol=" %%l in ("!LIB!") do (
endlocal
set INCLUDE=%%i;%%a^include
set LIB=%%l;%%a^lib
echo [vcinitut.bat] %%a^include
echo [vcinitut.bat] %%a^lib
goto end
)))
:error
endlocal
exit /b 1
:end
echo on