-
Notifications
You must be signed in to change notification settings - Fork 18
/
env_sirf.PS1.in
30 lines (25 loc) · 960 Bytes
/
env_sirf.PS1.in
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
29
30
# This file sets environment variables for the CCP SyneRBI software for PowerShell
# Use it like this
# . /path/to/whereever/env_sirf.ps1
# Preferably add this line to your .profile
# need to be forward slashes, as otherwise cannot find files
$Env:SIRF_PATH = "@SIRF_SOURCE_DIR@"
# Where all binaries are installed
$Env:SIRF_INSTALL_PATH="@WIN_SyneRBI_INSTALL@"
$Env:Path = "$Env:SIRF_INSTALL_PATH\bin" + ";" + $Env:Path
if ("@WIN_FFTW_PATH@")
{ $Env:Path += ";@WIN_FFTW_PATH@" }
if ("@WIN_BOOST_PATH@")
{ $Env:Path += ";@WIN_BOOST_PATH@" }
##### Environment variables for Python
if ("@WIN_PYTHON_DEST@")
{
$Env:PYTHONPATH="@WIN_PYTHON_DEST@" + ";" + $Env:PYTHONPATH
$Env:SIRF_PYTHON_EXECUTABLE="@WIN_PYTHON_EXECUTABLE@"
}
##### Environment variables for Matlab
if ("@WIN_MATLAB_DEST@")
{
Env:MATLABPATH="@WIN_MATLAB_DEST@";"@WIN_SPM_DIR@;" + $Env:MATLABPATH
$Env:SIRF_MATLAB_EXECUTABLE="@WIN_Matlab_MAIN_PROGRAM@"
}