#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