diff --git a/script/install_H5HUT.sh b/script/install_H5HUT.sh new file mode 100755 index 0000000000000000000000000000000000000000..7f5c2ff85677125e66a77e795100c415d6fe0dc6 --- /dev/null +++ b/script/install_H5HUT.sh @@ -0,0 +1,23 @@ +#! /bin/bash + +# check if the directory $1/H5HUT exist + +if [ -d "$1/H5HUT" ]; then + echo "H5HUT already installed" + exit 0 +fi + +rm H5hut-1.99.13.tar.gz +rm -rf H5hut-1.99.13 +wget http://ppmcore.mpi-cbg.de/upload/H5hut-1.99.13.tar.gz +tar -xf H5hut-1.99.13.tar.gz +cd H5hut-1.99.13 +sh ./autogen.sh +./configure --with-hdf5=$1/HDF5 --enable-parallel --prefix=$1/H5HUT +make -j 4 +if [ $? -eq 0 ]; then + echo "H5HUT error installing" + exit 0 +fi +mkdir $1/H5HUT +make install