0026462: Visualization - selection does not adapt to line width change
[occt.git] / genproj.bat
CommitLineData
910970ab 1@echo off
2
3rem Helper script to run generation of VS projects on Windows.
4rem Running it requires that Tcl should be in the PATH
5
6SET "OLD_PATH=%PATH%"
7
d1a67b9d 8if exist "%~dp0env.bat" (
9 call "%~dp0env.bat"
10)
11
12set "TCL_EXEC=tclsh.exe"
13
14for %%X in (%TCL_EXEC%) do (set TCL_FOUND=%%~$PATH:X)
15
16if not defined TCL_FOUND (
17 echo "Error. %TCL_EXEC% is not found. Please update PATH variable"
18 goto :eof
19)
20
910970ab 21if not exist "%~dp0custom.bat" (
d1a67b9d 22 %TCL_EXEC% %~dp0adm/genconf.tcl
910970ab 23)
24
25if not exist "%~dp0custom.bat" (
d1a67b9d 26 echo custom.bat is not created. Run the script again or create custom.bat manually
910970ab 27 goto :eof
910970ab 28)
29
30if exist "%~dp0env.bat" (
31 call "%~dp0env.bat"
32)
33
34cd %~dp0
d1a67b9d 35%TCL_EXEC% %~dp0adm/start.tcl genproj -path=. -target=%VCVER%
910970ab 36SET "PATH=%OLD_PATH%"