mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-07-04 05:37:06 +01:00
CI scripts update
This commit is contained in:
@ -1,26 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
if (( $# != 2 )); then
|
||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||
if (($# != 2)); then
|
||||
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
PREFIX=$1
|
||||
NTASKS=$2
|
||||
prefix=$1
|
||||
ntasks=$2
|
||||
|
||||
set -ex
|
||||
INITDIR=$(pwd -P)
|
||||
mkdir -p ${PREFIX}
|
||||
cd ${PREFIX}
|
||||
PREFIX=$(pwd -P)
|
||||
cd ${INITDIR}/local/build
|
||||
init_dir=$(pwd -P)
|
||||
mkdir -p "${prefix}"
|
||||
cd "${prefix}"
|
||||
prefix=$(pwd -P)
|
||||
cd "${init_dir}/local/build"
|
||||
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}
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -Dminuit2_standalone=ON -DCMAKE_INSTALL_PREFIX="${prefix}"
|
||||
make -j "${ntasks}"
|
||||
make install
|
||||
cd ${INITDIR}/local
|
||||
cd "${init_dir}/local"
|
||||
touch .built.minuit
|
||||
cd ${INITDIR}
|
||||
cd "${init_dir}"
|
||||
|
Reference in New Issue
Block a user