I'm using modules to manage software. I'm trying to set up the environment so that a certain function can be called from any modulefile without each file having to source the proc definition.
Example: I want the util:prereq
function to be available in the following modulefile without having to source its definition:
#%Module1.0
util::prereq compiler_intel/13.0.1 mpi/openmpi-1.6.4_intel-13.0.1
In order to do this I know I'll have to hook into modulefiles or tcl or something. Any ideas?
The usage of this function is similar to prereq
except that the function will load any prerequisites instead of failing because it isn't loaded.