0026833: Create command checkview containing all viewer types
[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"
31dfc19f 10) else (
11 type "%~dp0adm\templates\env.bat" | findstr /i /v "__CASROOT__" > "%~dp0env.bat"
d1a67b9d 12)
13
14set "TCL_EXEC=tclsh.exe"
15
16for %%X in (%TCL_EXEC%) do (set TCL_FOUND=%%~$PATH:X)
17
18if not defined TCL_FOUND (
19 echo "Error. %TCL_EXEC% is not found. Please update PATH variable"
20 goto :eof
21)
22
910970ab 23if not exist "%~dp0custom.bat" (
d1a67b9d 24 %TCL_EXEC% %~dp0adm/genconf.tcl
910970ab 25)
26
27if not exist "%~dp0custom.bat" (
d1a67b9d 28 echo custom.bat is not created. Run the script again or create custom.bat manually
910970ab 29 goto :eof
910970ab 30)
31
32if exist "%~dp0env.bat" (
33 call "%~dp0env.bat"
34)
35
36cd %~dp0
d1a67b9d 37%TCL_EXEC% %~dp0adm/start.tcl genproj -path=. -target=%VCVER%
910970ab 38SET "PATH=%OLD_PATH%"