@@ -14,15 +14,14 @@ if errorlevel 1 (
1414goto :ERROR
1515)
1616
17- REM NOTE: There is an expectation here that the full path to FSC, FSi and other tools be given.
18- REM This is reasonable for testing, because you want to know exactly which binary you are running.
19- REM Ideally we would use 'where' here, but WinXP does not support that.
20- REM Trying do define my own WHERE
21-
22- call :WHERE %FSC%
23- if errorlevel 1 goto :ERROR
24- call :WHERE %FSI%
25- if errorlevel 1 goto :ERROR
17+ if not exist " %FSC% " (
18+ set ERRORMSG = %ERRORMSG% fsc.exe not found at the location" %FSC% "
19+ goto :ERROR
20+ )
21+ if not exist " %FSI% " (
22+ set ERRORMSG = %ERRORMSG% fsi.exe not found at the location" %FSI% "
23+ goto :ERROR
24+ )
2625
2726set sources =
2827if exist testlib.fsi (set sources=%sources% testlib.fsi)
@@ -315,10 +314,4 @@ if NOT EXIST dont.use.wrapper.namespace (
315314 )
316315 )
317316)
318- goto :EOF
319-
320- :WHERE
321- for /f%%i in (" %~1 " )do set _WHERE = %%~$PATH:i
322- if not defined _WHEREset ERRORMSG = %ERRORMSG% %~1 not found;
323- set _WHERE> NUL 2 >& 1
324- goto :EOF
317+ goto :EOF