1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#Common modulefile for fooA
#Expects the following variables to have been set
# version: the version of fooA
proc ModulesHelp { } {
global version
puts stderr "
FooA: A simple example of modulefile code reuse
Version $version
This is a simple example of code reuse in modulefiles.
We have a couple versions of fooA, and the only differences
in what the modulefiles for the different fooA versions do
is that some paths include the version number.
"
}
module-whatis "fooA version $version"
conflict fooA
set rootdir /software/fooA/$version
prepend-path PATH $rootdir/bin
prepend-path MANPATH $rootdir/share/man
prepend-path LD_LIBRARY_PATH $rootdir/lib
|