From 0ba06aa74b71952599cc7fa96cbd2352e91bb27e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 24 Mar 2015 18:54:12 +0100 Subject: [PATCH] lib/libem.bash: - bugfixes in setting up family HDF5_serial - skip call of em.cleanup_build() if nothing was build --- lib/libem.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/libem.bash b/lib/libem.bash index 4ec90e1..f1949c9 100644 --- a/lib/libem.bash +++ b/lib/libem.bash @@ -393,7 +393,7 @@ function _setup_env2() { MODULE_RPREFIX+="/${COMPILER}/${COMPILER_VERSION}" MODULE_NAME="${COMPILER}/${COMPILER_VERSION}/" - MODULE_NAME+="hdf5_serial/${HDF5_VERSION}/" + MODULE_NAME+="hdf5_serial/${HDF5_SERIAL_VERSION}/" MODULE_NAME+="${P}/${V}" ;; * ) @@ -632,6 +632,7 @@ function _post_install() { } function em.make_all() { + local building='no' echo "${P}:" _setup_env1 _load_build_dependencies @@ -643,6 +644,7 @@ function em.make_all() { fi if [[ ! -d "${PREFIX}" ]] || [[ ${force_rebuild} == 'yes' ]]; then + building='yes' echo "Building $P/$V ..." [[ ${dry_run} == yes ]] && die 0 "" _check_compiler @@ -667,7 +669,8 @@ function em.make_all() { if [[ ${bootstrap} == 'no' ]]; then _set_link fi - em.cleanup_build + [[ ${building} == yes ]] && em.cleanup_build + return 0 } ##############################################################################