forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
87 lines (75 loc) · 3.2 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
SETUP_REMOTES=false
echo
echo "Welcome to the FLASHgg automagic setup script!"
if [ ! -f $CMSSW_BASE/src/.git/HEAD ];
then
echo "CMSSW area appears not to be set up correctly. Check README carefully."
echo
return 1
fi
NFILES=`ls -1 ${CMSSW_BASE}/src | wc -l`
if [ ! ${NFILES} = "1" ]
then
echo "CMSSW area appears to have extra files already. Start over and check README carefully."
echo "You can remove this condition from the setup script if you wish, but proceed with caution!"
echo
return 1
fi
echo
echo "You should have checked out from cms-analysis/flashgg. Renaming this to upstream for convenience of existing developers..."
cd $CMSSW_BASE/src/flashgg
git remote rename origin upstream
GITHUBUSERNAME=`git config user.github`
echo "Remember that:"
echo " * To get a branch you can commit to, do: git checkout -b my-informative-branchname"
echo " * YOU will need to add your own repo as a remote to push anything, e.g. with this command (check your GitHub username!):"
echo " cd ${CMSSW_BASE}/src/flashgg ; git remote add origin [email protected]:${GITHUBUSERNAME}/flashgg.git"
echo
if ${SETUP_REMOTES} ; then
echo "Setting up remotes listed in setup script..."
cd $CMSSW_BASE/src/flashgg
git remote add bmarzocc https://github.com/bmarzocc/flashgg
git remote add camilocarrillo https://github.com/camilocarrillo/flashgg
git remote add favaro https://github.com/favaro/flashgg
git remote add fcouderc https://github.com/fcouderc/flashgg
git remote add ferriff https://github.com/ferriff/flashgg
git remote add InnaKucher https://github.com/InnaKucher/flashgg
git remote add ldcorpe https://github.com/ldcorpe/flashgg
git remote add malcles https://github.com/malcles/flashgg
git remote add matteosan1 https://github.com/matteosan1/flashgg
git remote add mdonega https://github.com/mdonega/flashgg
git remote add mmachet https://github.com/mmachet/flashgg
git remote add molmedon https://github.com/molmedon/flashgg
git remote add mplaner https://github.com/mplaner/flashgg
git remote add musella https://github.com/musella/flashgg
git remote add OlivierBondu https://github.com/OlivierBondu/flashgg
git remote add pmeridian https://github.com/pmeridian/flashgg
git remote add quittnat https://github.com/quittnat/flashgg
git remote add sethzenz https://github.com/sethzenz/flashgg
git remote add swagata87 https://github.com/swagata87/flashgg
git remote add yhaddad https://github.com/yhaddad/flashgg
git remote add upstream-writable [email protected]:cms-analysis/flashgg.git
else
echo "Not setting up additional remote names (default)"
fi
cd $CMSSW_BASE/src
echo
echo "Setting up pileupjetid..."
git cms-addpkg RecoJets/JetProducers
git cms-merge-topic -u ldcorpe:flashgg-new-vtxmap-pujetid-74X
echo
#echo "Setting up PUPPI..."
#git clone -b flashgg https://github.com/ldcorpe/Dummy
echo
echo "Setting up weight counter..."
git cms-addpkg CommonTools/UtilAlgos
git cms-addpkg DataFormats/Common
git cms-merge-topic sethzenz:topic-weights-count-74X
echo
echo "Setting up Conversion tools for pat electron..."
git cms-addpkg RecoEgamma/EgammaTools
git cms-merge-topic -u sethzenz:topic-conversion-tools-for-pat-ele-74X
echo
echo "Done with setup script! You still need to build!"
echo