7c65581d |
1 | @echo off |
2 | |
3 | rem Setup environment |
4 | call "%~dp0env.bat" %1 %2 %3 |
5 | |
6 | rem Define path to project file |
7 | set "PRJFILE=%~dp0\adm\wnt\cbp\OCCT.workspace" |
8 | if not exist "%PRJFILE%" set "PRJFILE=%~dp0\adm\wnt\cbp\Products.workspace" |
9 | if not "%4" == "" ( |
10 | set "PRJFILE=%4" |
11 | ) |
12 | |
13 | if "%CB_PATH%"=="" if exist "%PROGRAMFILES%\CodeBlocks" set "CB_PATH=%PROGRAMFILES%\CodeBlocks\codeblocks.exe" |
944d808c |
14 | if "%CB_PATH%"=="" if exist "%PROGRAMFILES(x86)%\CodeBlocks" set "CB_PATH=%PROGRAMFILES(x86)%\CodeBlocks\codeblocks.exe" |
7c65581d |
15 | if "%CB_PATH%"=="" set "CB_PATH=codeblocks.exe" |
16 | |
17 | set "CASBIN=wnt\cbp" |
18 | set "PATH=%~dp0%CASBIN%\bin%CASDEB%;%PATH%" |
19 | |
20 | start "" "%CB_PATH%" "%PRJFILE%" |