mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 03:09:40 +02:00
Merge branch '180-modbuild-env-variables-pmodules_tmpdir-and-pmodules_distfiledir' into 'Pmodules-1.0'
Resolve "modbuild: env. variables PMODULES_TMPDIR and PMODULES_DISTFILEDIR" See merge request Pmodules/src!153
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
@@ -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="$@"
|
||||
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user