diff --git a/CHANGELOG.md b/CHANGELOG.md index dd1ee69..bfb02fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ full path of the modulefile and the user name. * modulecmd is now relocatable using the environment variable `PMODULES_HOME` - * experimental support for modulecmd written in Tcl has been removed. + * experimental support for modulecmd written in Tcl removed. + * The environment variable `PMODULES_TMPDIR` and `PMODILES_DISTFILESDIR` + can now be used to override the values set in the configuration file. ## Version 1.0.0rc13 * same as 1.0.0rc12 but compiled on SL6 diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index c202e03..f374ba5 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -24,20 +24,18 @@ else fi PATH+='/usr/bin:/bin:/usr/sbin:/sbin' PATH+=":${mydir}" -PATH+=":${mydir}/../lib:${mydir}/../config" +PATH+=":${mydir}/../lib" + +# path of config files +PATH+=":${mydir}/../config" source libstd.bash || { echo "Oops: cannot source library -- '$_'" 1>&2; exit 3; } - -# can be set in the configuration file -declare PMODULES_DISTFILESDIR='' -declare PMODULES_TMPDIR='' - source libpbuild.bash || \ std::die 3 "Oops: cannot source library -- '$_'" -# save arguments, (still) required for building dependencies +# save arguments, required for building dependencies declare -r ARGS="$@" ##############################################################################