From 94630782e9ff9fe83668a64139e04d7dfe7cdd90 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Oct 2005 09:03:04 +0000 Subject: [PATCH] HDF5-1.4.4 installation script --- config_files/hdf5-1.4.4.sh | 82 +++++++++++++++++++++++++++++++++----- 1 file changed, 72 insertions(+), 10 deletions(-) diff --git a/config_files/hdf5-1.4.4.sh b/config_files/hdf5-1.4.4.sh index db48348..fdce780 100755 --- a/config_files/hdf5-1.4.4.sh +++ b/config_files/hdf5-1.4.4.sh @@ -3,22 +3,16 @@ check_version() { if [ -z "$HDF5HOME" ]; then - #echo "HDF5HOME doesn't set" return 1 fi check_lib_version libhdf5.so.0.0.0 ${HDF5HOME}/lib if [ "$?" -ne "0" ]; then return 1 fi -#check libhdf5.settings file in a ${HDF5HOME}/lib check_lib_version libhdf5.settings ${HDF5HOME}/lib if [ "$?" -eq "0" ]; then - #check that libhdf5.settings file contains following entry: - #HDF5 Version: hdf5-1.4.4 - entry=`grep "HDF5 Version:" ${HDF5HOME}/lib/libhdf5.settings` - ver=`echo $entry | awk '{print $3}'` + ver=`grep "HDF5 Version:" ${HDF5HOME}/lib/libhdf5.settings | awk '{print $3}'` if [ "$ver" = "1.4.4" ]; then - #echo "The product ${PRODUCT} has been already installed on yours system" return 0 fi fi @@ -29,7 +23,7 @@ print_env() { cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKE0.LOG < ./src/.dependnew +mv ./src/.dependnew ./src/.depend +cat >> ${PRODUCT_DIR}/MAKE1.LOG < ./test/.dependnew +mv ./test/.dependnew ./test/.depend +cat >> ${PRODUCT_DIR}/MAKE2.LOG < ./tools/lib/.dependnew +mv ./tools/lib/.dependnew ./tools/lib/.depend +cat >> ${PRODUCT_DIR}/MAKE3.LOG < ./tools/h5dump/.dependnew +mv ./tools/h5dump/.dependnew ./tools/h5dump/.depend +cat >> ${PRODUCT_DIR}/MAKE4.LOG < ./tools/h5ls/.dependnew +mv ./tools/h5ls/.dependnew ./tools/h5ls/.depend +cat >> ${PRODUCT_DIR}/MAKE5.LOG < ./tools/misc/.dependnew +mv ./tools/misc/.dependnew ./tools/misc/.depend +cat >> ${PRODUCT_DIR}/MAKE6.LOG < ./examples/.dependnew +#mv ./examples/.dependnew ./examples/.depend +#cat >> ${PRODUCT_DIR}/MAKE7.LOG < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env } install_binary() -- 2.39.2