forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·102 lines (89 loc) · 4.08 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
SETUP_REMOTES=true
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
git remote set-url --push upstream DISALLOWED
GITHUBUSERNAME=`git config user.github`
echo "Setting up a new origin repo, assuming your fork name is ${GITHUBUSERNAME} - check this!"
git remote add origin git@github.com:${GITHUBUSERNAME}/flashgg.git
git config branch.master.remote origin
if ${SETUP_REMOTES} ; then
echo "Setting up remotes listed in setup script..."
cd $CMSSW_BASE/src/flashgg
git remote add ArnabPurohit https://github.com/ArnabPurohit/flashgg
git remote add bcourbon https://github.com/bcourbon/flashgg
git remote add bmarzocc https://github.com/bmarzocc/flashgg
git remote add camilocarrillo https://github.com/camilocarrillo/flashgg
git remote add cms-flashgg https://github.com/cms-flashgg/flashgg
git remote add crovelli https://github.com/crovelli/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 FMantegazzini FMantegazzini/flashgg
git remote add heppye https://github.com/heppye/flashgg
git remote add InnaKucher https://github.com/InnaKucher/flashgg
git remote add itopsisg https://github.com/itopsisg/flashgg
git remote add J-C-Wright https://github.com/J-C-Wright/flashgg
git remote add JunquanTao https://github.com/JunquanTao/flashgg
git remote add kmondal https://github.com/kmondal/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 rateixei https://github.com/rateixei/flashgg
git remote add ResonantHbbHgg https://github.com/ResonantHbbHgg/flashgg
git remote add sethzenz https://github.com/sethzenz/flashgg
git remote add simonepigazzini https://github.com/simonepigazzini/flashgg
git remote add swagata87 https://github.com/swagata87/flashgg
git remote add yhaddad https://github.com/yhaddad/flashgg
git remote add upstream-writable git@github.com: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 sethzenz:topic-pujid-74X
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 "Setting up PUPPI..."
git cms-addpkg CommonTools/PileupAlgos
git cms-merge-topic yhaddad:topic-puppi-flashgg-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 "adding hook for indentation"
ln -s $CMSSW_BASE/src/flashgg/Validation/scripts/flashgg_indent_check.sh $CMSSW_BASE/src/flashgg/.git/hooks/pre-commit
echo
echo "Done with setup script! You still need to build!"
echo