-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·34 lines (27 loc) · 831 Bytes
/
setup.sh
File metadata and controls
executable file
·34 lines (27 loc) · 831 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
29
30
31
32
33
34
#!/usr/bin/env bash
# Set CGRU root:
export CGRU_LOCATION=$PWD
# Add CGRU bin to path:
export PATH="${CGRU_LOCATION}/bin:${PATH}"
# Add software to PATH:
export PATH="${CGRU_LOCATION}/software_setup/bin:${PATH}"
# Python module path:
export CGRU_PYTHON="${CGRU_LOCATION}/lib/python"
if [ "$PYTHONPATH" != "" ]; then
export PYTHONPATH="${CGRU_PYTHON}:${PYTHONPATH}"
else
export PYTHONPATH="${CGRU_PYTHON}"
fi
if [ "${CGRU_CUSTOM_PYTHONPATH}" != "" ]; then
export PYTHONPATH="${CGRU_CUSTOM_PYTHONPATH}:${PYTHONPATH}"
fi
# Get CGRU version:
export CGRU_VERSION=`cat ${CGRU_LOCATION}/version.txt`
echo "CGRU_VERSION $CGRU_VERSION : '$CGRU_LOCATION'"
# Source custom setup if any exists:
for setup_file in setup_*.sh
do
[ -z "$setup_file" ] && continue
[ -f "$setup_file" ] || continue
source ./$setup_file ""
done