From 8a800c602fe905589dbc18d5726b4050df3b28d9 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 18 Mar 2015 17:47:20 +0100 Subject: [PATCH] scripts/Bootstrap/compile_pmodules.sh: print message and exit, if something failed to compile --- scripts/Bootstrap/compile_pmodules.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/Bootstrap/compile_pmodules.sh b/scripts/Bootstrap/compile_pmodules.sh index 5c38325..9d60e93 100755 --- a/scripts/Bootstrap/compile_pmodules.sh +++ b/scripts/Bootstrap/compile_pmodules.sh @@ -8,13 +8,13 @@ source "${BASE_DIR}/config/Pmodules.conf" unset PMODULES_HOME source "/opt/psi/config/environment.bash" -${BOOTSTRAP_DIR}/gettext/build --bootstrap -${BOOTSTRAP_DIR}/getopt/build --bootstrap -${BOOTSTRAP_DIR}/dialog/build --bootstrap -${BOOTSTRAP_DIR}/bash/build --bootstrap -${BOOTSTRAP_DIR}/Tcl/build --bootstrap +${BOOTSTRAP_DIR}/gettext/build --bootstrap || { echo "compiling 'gettext' failed!"; exit 1; } +${BOOTSTRAP_DIR}/getopt/build --bootstrap || { echo "compiling 'getopt' failed!"; exit 1; } +${BOOTSTRAP_DIR}/dialog/build --bootstrap || { echo "compiling 'dialog' failed!"; exit 1; } +${BOOTSTRAP_DIR}/bash/build --bootstrap || { echo "compiling 'bash' failed!"; exit 1; } +${BOOTSTRAP_DIR}/Tcl/build --bootstrap || { echo "compiling 'Tcl' failed!"; exit 1; } # we have to remove the init directory - otherwise the next build will fail... rm -rf "${PMODULES_HOME}/init" -${BOOTSTRAP_DIR}/Modules/build --bootstrap +${BOOTSTRAP_DIR}/Modules/build --bootstrap || { echo "compiling 'Modules' failed!"; exit 1; } mv -v "${PMODULES_HOME}/bin/modulecmd" "${PMODULES_HOME}/bin/modulecmd.tcl"