Commit Graph

7 Commits

Author SHA1 Message Date
Xavier Delaruelle
4500410b8a install: reinit module code in version modfile
Adapt version modulefile, which is deployed in versioning installation
mode, to re-initialize module command during its unload, to restore the
command of the previously loaded version.

Goes through a full re-initialization to overcome incompatible
definition of the module command between version 3 and 4.

This full re-initialization cannot be attempted on scripting shells,
like Perl or Python, as function re-definition is not a common practice
on these languages.
2017-12-31 13:26:40 +01:00
Xavier Delaruelle
dbd86817c7 install: deploy MODULE_VERSION and version modfile
When --enable-versioning is set at configure time, deploy the setup of
the MODULE_VERSION and MODULE_VERSION_STACK environment variables in
modulecmd.tcl and in a version-specific modulefile.

This version-specific modulefile is deployed in a @baseprefix@/versions
modulepath directory, which is also created specifically for versioning
installation mode.

MODULE_VERSION and MODULE_VERSION_STACK environment variables setup in
modulecmd.tcl is commented if versioning installation mode is not
enabled rather deleted to guaranty consistency across code coverage
tests (same code line numbering whatever the installation options set).

version-specific modulefile is a bit different than the one used before
<4.0 as now module version is initialized when loading this module by
calling the autoinit action on the modulecmd.tcl script.

These version-specific modulefiles enable to switch from one module
version to another but there is an incompatibility of initialization
between Modules 3.2 and Modules >=4. Switching from Modules 3.2 to
Modules >4 will be possible, but not going back from >4 to version 3.2.
2017-12-28 21:42:25 +01:00
Xavier Delaruelle
8594a029cf install: add 'modules' modfile to example modfiles 2017-09-15 06:16:42 +02:00
Xavier Delaruelle
ad3ad5c98d Rename Modules-Tcl > Modules in docs and install scripts 2017-09-15 06:15:07 +02:00
Xavier Delaruelle
97f052b47b contrib: import and adapt example modulefiles
Get and adapt regular set of example modulefiles provided with
environment-modules.
2017-05-03 06:23:26 +02:00
Kent Mein
ab5ba88259 Added in a couple of the default modules I removed before.
Also modified the comments in the example modulerc file a little.
2014-02-12 14:12:27 -06:00
Kent Mein
d081f55283 Added really old man pages, and a bunch of example things.
Still need to write some documentation for the contrib stuff and
update the man pages.
2013-03-04 07:42:13 -06:00