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