1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-14 17:55:37 +00:00
LatAnalyze/ci-scripts/install-hdf5.sh

28 lines
551 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2024-02-10 17:39:22 +00:00
name='hdf5-1.14.3'
2024-02-10 17:39:22 +00:00
if (($# != 2)); then
echo "usage: $(basename "$0") <prefix> <ntasks>" 1>&2
2016-04-11 19:16:38 +01:00
exit 1
fi
2024-02-10 17:39:22 +00:00
prefix=$1
ntasks=$2
2016-04-11 19:16:38 +01:00
set -ex
2024-02-10 17:39:22 +00:00
init_dir=$(pwd -P)
mkdir -p "${prefix}"
cd "${prefix}"
prefix=$(pwd -P)
cd "${init_dir}/local/build"
wget "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/${name}/src/${name}.tar.gz"
tar -xzvf ${name}.tar.gz
mkdir ${name}/build
cd ${name}/build
../configure --prefix="${prefix}" --enable-cxx
make -j "${ntasks}"
make install
2024-02-10 17:39:22 +00:00
cd "${init_dir}/local"
touch .built.hdf5
2024-02-10 17:39:22 +00:00
cd "${init_dir}"