-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathfirst_setup.sh
30 lines (27 loc) · 1.28 KB
/
first_setup.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
27
28
29
30
#!/bin/bash
# Look out for conflicts between git and cmssw
if [ ! -f ${CMSSW_BASE}/src/.git/HEAD ];
then
echo "You seem to be on Ingrid and CMSSW area appears not to be set up correctly. Check README carefully."
echo
return 1
fi
pushd ${CMSSW_BASE}/src/cp3_llbb/GridIn > /dev/null
# configure the origin repository
GITHUBUSERNAME=`git config user.github`
GITHUBUSERREMOTE=`git remote -v | grep upstream | awk '{print $2}' | head -n 1 | cut -d / -f 2`
git remote add origin [email protected]:${GITHUBUSERNAME}/${GITHUBUSERREMOTE}
# Add the remaining forks
git remote add AlexandreMertens https://github.com/AlexandreMertens/GridIn.git
git remote add blinkseb https://github.com/blinkseb/GridIn.git
git remote add BrieucF https://github.com/BrieucF/GridIn.git
git remote add mdelcourt https://github.com/mdelcourt/GridIn.git
git remote add OlivierBondu https://github.com/OlivierBondu/GridIn.git
git remote add pieterdavid https://github.com/pieterdavid/GridIn.git
git remote add sdevissc https://github.com/sdevissc/GridIn.git
git remote add swertz https://github.com/swertz/GridIn.git
pushd ${CMSSW_BASE}/src/cp3_llbb/GridIn/test > /dev/null
ln -s -d ${CMSSW_BASE}/src/cp3_llbb/Datasets/datasets datasets
ln -s -d ${CMSSW_BASE}/src/cp3_llbb/Datasets/analyses analyses
popd > /dev/null
popd > /dev/null