forked from maoderos/cmssw-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmssw_install.sh
executable file
·56 lines (45 loc) · 1004 Bytes
/
cmssw_install.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
#!/bin/bash
#default versions
architecture=slc7_amd64_gcc10
CMSSW_version=12_3_4
Help()
{
cat <<-END
${0##*/}: Script for installing the CMS software (CMSSW)
Usage:
--arch <architecture>
specify the architecture. (default: slc7_amd64_gcc11)
--version <CMSSW release>
The version of CMSSW. (default: 12_3_4)
END
exit
}
while [ $# -gt 0 ]; do
case $1 in
--help)
Help
exit
;;
--arch)
architecture=$2
shift 2
;;
--version)
CMSSW_version=$2
shift 2
;;
esac
done
echo "Installing cmssw"
echo "archichecture=${architecture}"
echo "CMSSW_version=${CMSSW_version}"
mkdir build
cp -r SITECONF/ build/
cd build
wget http://cmsrep.cern.ch/cmssw/repos/bootstrap.sh;
sudo rpm -e --nodeps curl;
sh ./bootstrap.sh -a ${architecture} setup;
./common/cmspkg -a ${architecture} install cms+cmssw+CMSSW_${CMSSW_version};
sudo mkdir -p cvmfs/cms.cern.ch
sudo ln -s /home/cmsusr/cmssw-install/build/* cvmfs/cms.cern.ch
echo "CMSSW install ended succesfully"