-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cmd
More file actions
28 lines (21 loc) · 670 Bytes
/
setup.cmd
File metadata and controls
28 lines (21 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
rem Set CGRU root:
SET "CGRU_LOCATION=%CD%"
rem Add libraries to path:
SET "PATH=%CGRU_LOCATION%\dll;%PATH%"
rem Add CGRU bin to path:
SET "PATH=%CGRU_LOCATION%\bin;%PATH%"
rem Add software to PATH:
SET "PATH=%CGRU_LOCATION%\software_setup\bin;%PATH%"
rem Python module path:
SET "CGRU_PYTHON=%CGRU_LOCATION%\lib\python"
if defined PYTHONPATH (
SET "PYTHONPATH=%CGRU_PYTHON%;%PYTHONPATH%"
) else (
SET "PYTHONPATH=%CGRU_PYTHON%"
)
rem Get CGRU version:
For /F "Tokens=*" %%I in ('type version.txt') Do Set CGRU_VERSION=%%I
echo CGRU_VERSION %CGRU_VERSION%
rem Call custom setup scripts:
For /F "Tokens=*" %%I in ('dir /b setup_*.cmd') Do call %%I