3 rem Helper script to run generation of VS projects on Windows.
4 rem Running it requires that Tcl should be in the PATH
5 rem Optional arguments: Format OS
6 rem Format can be vc10, vc11, vc12, vc14, vc141, cbp, or xcd
7 rem OS can be wnt, uwp, mac, or lin
11 rem run GUI configurator if custom.bat is missing
12 if not exist "%~dp0custom.bat" (
16 if not exist "%~dp0custom.bat" (
17 echo Error: custom.bat is not present.
18 echo Run the script again to generate custom.bat, or create it manually
22 if exist "%~dp0env.bat" (
23 call "%~dp0env.bat" %1
27 set "TCL_EXEC=tclsh.exe"
28 for %%X in (%TCL_EXEC%) do (set TCL_FOUND=%%~$PATH:X)
30 set "TCL_EXEC2=tclsh86.exe"
31 if not defined TCL_FOUND (
32 for %%X in (%TCL_EXEC2%) do (
33 set TCL_FOUND=%%~$PATH:X
34 set TCL_EXEC=%TCL_EXEC2%
38 rem fail if Tcl is not found
39 if not defined TCL_FOUND (
40 echo Error: "%TCL_EXEC%" is not found. Please update PATH variable ^(use custom.bat^)
45 if "%aPlatform%" == "" (
47 if "%VCPROP%" == "Universal" (
53 %TCL_EXEC% %~dp0adm/start.tcl genproj %VCFMT% %aPlatform% %3 %4 %5