2016-04-08 00:42:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-02-10 17:39:22 +00:00
|
|
|
name='hdf5-1.14.3'
|
2016-04-08 00:42:11 +01:00
|
|
|
|
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
|
|
|
|
2016-04-08 00:42:11 +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}"
|
2016-04-08 00:42:11 +01:00
|
|
|
make install
|
2024-02-10 17:39:22 +00:00
|
|
|
cd "${init_dir}/local"
|
2016-04-08 00:42:11 +01:00
|
|
|
touch .built.hdf5
|
2024-02-10 17:39:22 +00:00
|
|
|
cd "${init_dir}"
|