-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.sh
26 lines (23 loc) · 911 Bytes
/
environment.sh
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
# Project-related environment variables
whereIam=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)
#This part should be changed by the user(s)
export jobid=NOTSET
if [ -e $whereIam/jobid.sh ]
then
source $whereIam/jobid.sh
echo "set jobid: $jobid"
else
echo "I did not find jobid.sh, are you sure you do not want to set the jobid and leave it to $jobid?"
fi
export URA_NTHREADS=1
#export URA_PROJECT_LIBS='-lwhatever_you_need_to_make_it_compile' #<-- Add here needed libraries for the project compilation
#HERE ARE LIONS!
#This part should be handled automatically by the scripts,
#touch it carefully
export URA_PROJECT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)
#source URA env
ura_dir=`dirname $(dirname $URA_PROJECT)`
source $ura_dir/URAnalysis/environment.sh
urttbar_dir=$( basename "$URA_PROJECT" )
branch=$( git symbolic-ref --short HEAD )
echo "On branch '$branch' of $urttbar_dir"