forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmsrep.sh
34 lines (32 loc) · 892 Bytes
/
cmsrep.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
CMSREP_SERVER=cmsrep.cern.ch
CMSREP_IB_SERVER=cmsrep.cern.ch
CMSBUILD_OPTS_FILE="etc/build_options.sh"
BUILD_OPTS=""
MULTIARCH_OPTS=""
umask 0002
export CMS_PYTHON_TO_USE="python"
if which python3 >/dev/null 2>&1 ; then export CMS_PYTHON_TO_USE="python3" ; fi
#called with $BUILD_OPTS $MULTIARCH_OPTS
function cmsbuild_args()
{
arg=""
if [ "$1" != "" ] ; then
BLD_OPTS=""
for x in $(echo "$1" | tr ',' ' ') ; do
case $x in
upload_store ) echo "ignoring upload_store" ;;
* ) BLD_OPTS="${BLD_OPTS},$x" ;;
esac
done
[ "$BLD_OPTS" != "" ] && arg="${arg} --build-options $(echo ${BLD_OPTS} | sed 's|^,||')"
fi
[ "$2" != "" ] && arg="${arg} --vectorization $2"
[ "${arg}" = "" ] || echo "${arg}"
}
function cmssw_default_target()
{
case $1 in
*SKYLAKE*|*SANDYBRIDGE*|*HASWELL*|*MULTIARCHS*) echo auto ;;
*) echo default ;;
esac
}