doc: desc. ModuleTool and ModuleToolVersion in modulefile(4)

This commit is contained in:
Xavier Delaruelle
2020-10-03 15:29:02 +02:00
parent b7b1037b45
commit 55323a48a0
2 changed files with 21 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ rst_epilog += '.. |modulefilesdir| replace:: %s\n' % modulefilesdir
rst_epilog += '.. |emph modulefilesdir| replace:: *%s*\n' % modulefilesdir
rst_epilog += '.. |bold modulefilesdir| replace:: **%s**\n' % modulefilesdir
rst_epilog += '.. |file modulefilesdir| replace:: :file:`%s`\n' % modulefilesdir
rst_epilog += '.. |code version| replace:: ``%s``\n' % version
# -- Options for manual page output ---------------------------------------

View File

@@ -733,6 +733,26 @@ Modules Variables
The :mfvar:`ModulesCurrentModulefile` variable contains the full pathname of
the *modulefile* being interpreted.
.. mfvar:: ModuleTool
The :mfvar:`ModuleTool` variable contains the name of the *module*
implementation currently in use. The value of this variable is set to
``Modules`` for this implementation.
.. only:: html
.. versionadded:: 4.7
.. mfvar:: ModuleToolVersion
The :mfvar:`ModuleToolVersion` variable contains the version of the *module*
implementation currently in use. The value of this variable is set to
|code version| for this version of Modules.
.. only:: html
.. versionadded:: 4.7
.. _Locating Modulefiles:
Locating Modulefiles