]> https://gitweb.dealii.org/ - candi.git/commitdiff
candi/deal.II: corrected creation of modulefiles
authorUwe Köcher <koecher@hsu-hamburg.de>
Tue, 6 Oct 2015 12:42:07 +0000 (14:42 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Tue, 6 Oct 2015 12:42:07 +0000 (14:42 +0200)
deal.II/packages/dealii.package

index 36098103ed519cfaf0f18fa9b7fc875bab03da05..74fc2106aa61d824173e20c52af815a7d29933af 100644 (file)
@@ -52,13 +52,14 @@ fi
 if [ -z "${MODULEFILE_PATH}" ]; then
     MODULEFILE_PATH=${INSTALL_PATH#$PREFIX_PATH}
     MODULEFILE_PATH=${MODULEFILE_PATH%/$COMPILER}
+    MODULEFILE_PATH=${INSTALL_PATH}/share/modulefiles${MODULEFILE_PATH}
 fi
 
 if [ -z "${CONFIG_FILE}" ]; then
     CONFIG_FILE=${MODULEFILE_PATH}/${COMPILER}
 fi
 
-CURRENT_MODULES=$(echo ${LOADEDMODULES} | sed 's/:/\ /')
+CURRENT_MODULES=$(echo ${LOADEDMODULES} | sed 's/:/\ /g')
 
     # Generate modulefile
     

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.