0024786: Move functionality of WOK command wgenproj to OCCT tool genproj
[occt.git] / genproj.bat
1 @echo off
2
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
6 SET "OLD_PATH=%PATH%"
7
8 if not exist "%~dp0custom.bat" (
9   tclsh.exe ./adm/genconf.tcl
10 )
11
12 if not exist "%~dp0custom.bat" (
13   echo custom.bat is not created. Run the script again and generate custom.bat
14   goto :eof
15 ) else (
16   call "%~dp0custom.bat"
17 )
18
19 if exist "%~dp0env.bat" (
20   call "%~dp0env.bat"
21 )
22
23 cd %~dp0
24 tclsh.exe ./adm/genproj.tcl -path=. -target=%VCVER% 
25 SET "PATH=%OLD_PATH%"