lmod: module files are written in a root folder named by target family (#13121)

fixes #13005

This commit fixes an issue with the name of the root directory for
module file hierarchies. Since #3206 the root folder was named after
the microarchitecture used for the spec, which is too specific and
not backward compatible for lmod hierarchies. Here we compute the
root folder name using the target family instead of the target name
itself and we add target information in the 'whatis' portion of the
module file.
This commit is contained in:
Massimiliano Culpo
2019-10-15 20:20:49 +02:00
committed by Todd Gamblin
parent 41e7e5693e
commit d33b0ffc50
3 changed files with 22 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
{% if short_description %}
whatis([[Name : {{ spec.name }}]])
whatis([[Version : {{ spec.version }}]])
whatis([[Target : {{ spec.target }}]])
whatis([[Short description : {{ short_description }}]])
{% endif %}
{% if configure_options %}