-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_CMSSW_11_0_0_patch1.sh
executable file
·62 lines (43 loc) · 1.51 KB
/
install_CMSSW_11_0_0_patch1.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
#!/usr/bin/env bash
action() {
local origin="$( pwd )"
local scram_cores="${SCRAM_CORES:-1}"
export SCRAM_ARCH="slc7_amd64_gcc820"
export CMSSW_VERSION="CMSSW_11_0_0_patch1"
export CMSSW_BASE="$( hgc_cmssw_base )"
if [ -d "$CMSSW_BASE" ]; then
echo "remove already installed software in $CMSSW_BASE"
rm -rf "$CMSSW_BASE"
fi
echo "setting up $CMSSW_VERSION with $SCRAM_ARCH in $CMSSW_BASE"
source "/cvmfs/cms.cern.ch/cmsset_default.sh" ""
mkdir -p "$( dirname "$CMSSW_BASE" )"
cd "$( dirname "$CMSSW_BASE" )"
scramv1 project CMSSW "$CMSSW_VERSION" || return "$?"
cd "$CMSSW_VERSION/src"
eval `scramv1 runtime -sh` || return "$?"
scram b || return "$?"
#
# custom packages
#
git cms-init
git cms-merge-topic cms-pepr:pepr_CMSSW_11_0_0_patch1 || return "$?"
git clone --recursive https://github.com/CMS-HGCAL/reco-prodtools.git reco_prodtools
scram b -j "$scram_cores" || return "$?"
#
# create prodtools templates
#
cd reco_prodtools/templates/python
# the next line requires a valid proxy
./produceSkeletons_D41_NoSmear_PU_AVE_200_BX_25ns.sh || return "$?"
cd "$CMSSW_BASE/src"
scram b python
#
# custom gfal2 bindings
#
rm -rf "$HGC_SOFTWARE/gfal2_${CMSSW_VERSION}"
source "$(law location)/contrib/cms/scripts/setup_gfal_plugins.sh" "$HGC_SOFTWARE/gfal2_${CMSSW_VERSION}" || return "$?"
unlink "$GFAL_PLUGIN_DIR/libgfal_plugin_http.so"
cd "$origin"
}
action "$@"