| 1 |
# SITECONFIG.TCL, site-specific configuration script for Modules |
| 2 |
# |
| 3 |
# This Tcl script enables to supersede any global variable or procedure |
| 4 |
# definition of modulecmd.tcl. See 'Site-specific configuration' section in |
| 5 |
# module(1) manpage for detailed information. |
| 6 |
|
| 7 |
########################################################################## |
| 8 |
|
| 9 |
# uncomment the following line to forbid the definition of an extra |
| 10 |
# site-specific configuration script |
| 11 |
#lappendConf locked_configs extra_siteconfig |
| 12 |
|
| 13 |
# uncomment the following line to forbid `implicit_default` config option |
| 14 |
# superseding |
| 15 |
#lappendConf locked_configs implicit_default |
| 16 |
|
| 17 |
# uncomment the following line to forbid log config options superseding |
| 18 |
#lappendConf locked_configs logged_events logger |
| 19 |
|
| 20 |
# define specific variables in modulefile interpreter context |
| 21 |
#set modulefile_extra_vars {varname1 value1 varname2 value2} |
| 22 |
|
| 23 |
# define specific commands in modulefile interpreter context based on |
| 24 |
# procedures defined in this file |
| 25 |
#set modulefile_extra_cmds {command1 procedure1 command2 procedure2} |
| 26 |
|
| 27 |
# define specific variables in modulerc interpreter context |
| 28 |
#set modulerc_extra_vars {varname1 value1 varname2 value2} |
| 29 |
|
| 30 |
# define specific commands in modulerc interpreter context based on procedures |
| 31 |
# defined in this file |
| 32 |
#set modulerc_extra_cmds {command1 procedure1 command2 procedure2} |
| 33 |
|
| 34 |
# register a procedure to run on a hook event with the add-hook command. |
| 35 |
# see 'Hooks' section in module(1) manpage for the current list of events |
| 36 |
# and their argument contract. several procedures can be registered on the |
| 37 |
# same event: they are then all called, in their registration order, every |
| 38 |
# time the event occurs |
| 39 |
#proc myHookProcedure {modfile modname modnamevr modspec mode requested} { |
| 40 |
# # code to run right before each modulefile evaluation |
| 41 |
#} |
| 42 |
#add-hook before-modulefile-eval myHookProcedure |
| 43 |
|