proc ModulesHelp { } { global mod_desc puts stderr "$mod_desc" } # The following variables will be used to compose # paths to basic directory and binaries for different # versions of the software you are installing # app name set app_name # app version set app_version # compiler used to build the software set compiler # app root set app_root ##################################################################### # basic help line that will be shown on "module what-is" command set mod_desc "\tLoads the $app_name-$app_version" ##################################################################### module-whatis $mod_desc ##################################################################### # this will write a description of the module # on "module load" command if { [ module-info mode load ] } { puts stderr "$mod_desc" } # here follows a list of pre-requisites module # you need to load in order to set the proper environment # notice that you can use variable to easily compose # module names and paths (so that the same "template" for # current software can be used for other flavour or versions # APPS prepend-path MANPATH $app_root/share/man prepend-path PATH $app_root/bin prepend-path LD_LIBRARY_PATH $app_root/lib # If this module can be required to compile something else, these following lines can help you, by uncommenting them: # prepend-path --delim " " CPPFLAGS -I$app_root/include # prepend-path --delim " " CFLAGS -I$app_root/include # prepend-path --delim " " LDFLAGS -L$app_root/lib