forked from kit-cn-cms/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
27 lines (20 loc) · 684 Bytes
/
setup.sh
File metadata and controls
27 lines (20 loc) · 684 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
alias rootpy='python -i $TOOLBOX/scripts/rootpy.py'
alias fitpy='python -i $TOOLBOX/scripts/fitpy.py'
alias dnnpy='python -i $TOOLBOX/scripts/dnnpy.py'
alias mrcrab='python $TOOLBOX/scripts/mrcrab.py'
alias condorSubmit='python $TOOLBOX/scripts/condorSubmit.py'
PYTHONPATH=$TOOLBOX:$PYTHONPATH
PYTHON27PATH=$TOOLBOX:$PYTHON27PATH
PYTHON3PATH=$TOOLBOX:$PYTHON3PATH
echo "added $TOOLBOX to PYTHONPATH"
cd $TOOLBOX
if [[ $(git rev-parse HEAD) != $(git ls-remote origin master | cut -f1) ]]
then
if read -q "choice?Do you want to update TOOLBOX? [y/N] ";
then
echo "\nupdating..."
git pull origin master
echo "done."
fi
fi
cd -