1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-14 09:45:36 +00:00
LatAnalyze/ci-scripts/install-minuit.sh

27 lines
489 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if (( $# != 2 )); then
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
2016-04-11 19:16:38 +01:00
exit 1
fi
PREFIX=$1
NTASKS=$2
2016-04-11 19:16:38 +01:00
set -ex
2020-01-10 11:59:07 +00:00
INITDIR=$(pwd -P)
2020-01-11 20:16:56 +00:00
mkdir -p ${PREFIX}
2020-01-10 11:59:07 +00:00
cd ${PREFIX}
PREFIX=$(pwd -P)
cd ${INITDIR}/local/build
2021-11-16 21:34:25 +00:00
rm -rf root
git clone https://github.com/root-project/root.git
cd root/math/minuit2/
mkdir build; cd build
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
make -j${NTASKS}
make install
cd ${INITDIR}/local
touch .built.minuit
cd ${INITDIR}