mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-06-21 00:32:01 +01:00
CI scripts expose number of build tasks
This commit is contained in:
@ -2,11 +2,12 @@
|
||||
|
||||
NAME='hdf5-1.10.5'
|
||||
|
||||
if (( $# != 1 )); then
|
||||
echo "usage: `basename $0` <prefix>" 1>&2
|
||||
if (( $# != 2 )); then
|
||||
echo "usage: `basename $0` <prefix> <ntasks>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
PREFIX=$1
|
||||
NTASKS=$2
|
||||
|
||||
set -ex
|
||||
INITDIR=$(pwd -P)
|
||||
@ -19,7 +20,7 @@ tar -xzvf ${NAME}.tar.gz
|
||||
mkdir ${NAME}/build
|
||||
cd ${NAME}/build
|
||||
../configure --prefix=${PREFIX} --enable-cxx
|
||||
make -j4
|
||||
make -j${NTASKS}
|
||||
make install
|
||||
cd ${INITDIR}/local
|
||||
touch .built.hdf5
|
||||
|
Reference in New Issue
Block a user