3 rem Helper script to run generation of VS projects on Windows.
4 rem Running it requires that Tcl should be in the PATH
8 if exist "%~dp0env.bat" (
11 type "%~dp0adm\templates\env.bat" | findstr /i /v "__CASROOT__" > "%~dp0env.bat"
14 set "TCL_EXEC=tclsh.exe"
16 for %%X in (%TCL_EXEC%) do (set TCL_FOUND=%%~$PATH:X)
18 if not defined TCL_FOUND (
19 echo "Error. %TCL_EXEC% is not found. Please update PATH variable"
23 if not exist "%~dp0custom.bat" (
24 %TCL_EXEC% %~dp0adm/genconf.tcl
27 if not exist "%~dp0custom.bat" (
28 echo custom.bat is not created. Run the script again or create custom.bat manually
32 if exist "%~dp0env.bat" (
37 %TCL_EXEC% %~dp0adm/start.tcl genproj -path=. -target=%VCVER%