-
Notifications
You must be signed in to change notification settings - Fork 16
/
environment.sh.template
52 lines (48 loc) · 2.03 KB
/
environment.sh.template
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##### set the paths to the homes of SLIM-release-comp/apps
# define the path to SLIM-release-comp if installed, or leave it as it is
export SLIM_COMP=absolute_path_to_SLIM-release-comp
# define the path to SLIM-release-apps
export SLIM_APPS=absolute_path_to_SLIM-release-apps
# define the path to personal copy (if other then SLIM_APPS) of SLIM-release-apps
export SLIM_APPS_RUNS=$SLIM_APPS
##### DO NOT MODIFY PAST THIS LINE
# set PATH environment
export PATH=$SLIM_APPS/bin:$SLIM_APPS/ibin:$SLIM_COMP/external/bin:$PATH
hash -r
# set library paths for dynamic compile-time linker
if [ -n "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib
fi
if [ -n "$LD_RUN_PATH" ]; then
export LD_RUN_PATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib:$LD_RUN_PATH
else
export LD_RUN_PATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib
fi
if [ -n "$PYTHONPATH" ]; then
export PYTHONPATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib:$SLIM_COMP/external/pylib:$PYTHONPATH
else
export PYTHONPATH=$SLIM_COMP/external/lib64:$SLIM_COMP/external/lib:$SLIM_COMP/external/pylib
fi
if [ -n "$MANPATH" ]; then
export MANPATH=$SLIM_COMP/external/man:$SLIM_COMP/external/share/man:$MANPATH
else
export MANPATH=$SLIM_COMP/external/man:$SLIM_COMP/external/share/man:`manpath`
fi
# add default MATLABPATH
if [ -n "$MATLABPATH" ]; then
test -d $SLIM_APPS/matlab && export MATLABPATH=$SLIM_APPS/matlab:$MATLABPATH
test -d $SLIM_COMP/matlab && export MATLABPATH=$SLIM_COMP/matlab:$MATLABPATH
else
test -d $SLIM_APPS/matlab && export MATLABPATH=$SLIM_APPS/matlab
test -d $SLIM_COMP/matlab && export MATLABPATH=$SLIM_COMP/matlab:$MATLABPATH
fi
# MADAGASCAR specific setup
export RSFROOT=$SLIM_COMP/external
# Path for binary data files part of RSF datasets
if [ -z "$DATAPATH" ]; then
export DATAPATH=$SLIM_APPS/tmp/
fi
test -d $DATAPATH || mkdir -p $DATAPATH
test -d $DATAPATH || echo "ERROR: Problem creating $DATAPATH"