mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
modules CVS repository. * Added README.perl describing Ron Isaacson's Env::Modulecmd perl module (Ron.Isaacson@morganstanley.com). * Added further tests for modulefile "module use dir_path" * Fixed bug of unloading a modulefile with a "module use dir_path"
27 lines
665 B
Plaintext
27 lines
665 B
Plaintext
#%Module1.0#####################################################################
|
|
##
|
|
## modules modulefile
|
|
##
|
|
proc ModulesHelp { } {
|
|
global version modroot
|
|
|
|
puts stderr "\tmodules - loads the modules software & application environment"
|
|
puts stderr "\n\tThis adds $modroot/* to several of the"
|
|
puts stderr "\tenvironment variables."
|
|
puts stderr "\n\tVersion $version\n"
|
|
}
|
|
|
|
module-whatis "loads the modules environment"
|
|
|
|
# for Tcl script use only
|
|
set version @VERSION@
|
|
set modroot @prefix@
|
|
|
|
|
|
setenv MODULESHOME $modroot
|
|
prepend-path PATH $modroot/bin
|
|
prepend-path MANPATH $modroot/man
|
|
|
|
module use @VERSIONPATH@
|
|
|