-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPAF_setup.sh
More file actions
32 lines (25 loc) · 940 Bytes
/
Copy pathPAF_setup.sh
File metadata and controls
32 lines (25 loc) · 940 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
#!/bin/bash
# Configuration of PAFPATH guess from the current location of this script
THIS=$(dirname ${BASH_ARGV[0]})
PAFPATH=$(cd ${THIS};pwd); export PAFPATH
# Colon separated list of paths where modules and packages are to be looked for
export PAFREPOSITORIES=./packages
# Add PAFPATH/bin to PATH
export PATH=$PATH:$PAFPATH/bin
# Add PAF lib path to libraries that ROOT should find.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PAFPATH/lib
# Autocomplete
if [ -f $PAFPATH/etc/pafautocomplete.sh ]; then
source $PAFPATH/etc/pafautocomplete.sh
fi
if [ -z $ROOTSYS ]; then
echo "WARNING: It seems you have not configured your ROOT environment"
echo " This is usually done with 'source /opt/root/bin/thisroot.sh'"
fi
if [ ! -z $1 ]; then
if [ "$1" == "-v" ]; then
echo "PAF has been configured correctly:"
echo "+ PAF is installed in $PAFPATH"
echo "+ PAF Repositories are set to $PAFREPOSITORIES"
fi
fi