| 1 |
#%Module##################################################################### |
| 2 |
# TACC local environment module file $Date: 2003/09/24 21:27:11 $ |
| 3 |
# |
| 4 |
# This module file appends the relevant paths in /usr/local to the end |
| 5 |
# of $PATH and $MANPATH. If you want the local software suite to be searched |
| 6 |
# before the Cray-supplied paths, unload the `TACC' module and load the |
| 7 |
# `local' module in your .login_user file. |
| 8 |
# |
| 9 |
# Do not edit this file directly as it is under RCS control. |
| 10 |
# |
| 11 |
############################################################################# |
| 12 |
proc ModulesHelp { } { |
| 13 |
puts stderr "The TACC modulefile defines the default paths and environment" |
| 14 |
puts stderr "variables needed to use the local software and utilities" |
| 15 |
puts stderr "available in /usr/local, placing them after the vendor-supplied" |
| 16 |
puts stderr "paths in PATH and MANPATH.:" |
| 17 |
} |
| 18 |
|
| 19 |
###if { [ expr [is-loaded TACC] && ![module-info mode remove] ] } { |
| 20 |
### puts stderr "TACC module already loaded" |
| 21 |
### break |
| 22 |
###} |
| 23 |
|
| 24 |
set sys [uname sysname] |
| 25 |
set node [uname node] |
| 26 |
|
| 27 |
# |
| 28 |
# Let node and sys everide the definition |
| 29 |
# |
| 30 |
#setenv ARCHIVER ranch.tacc.utexas.edu |
| 31 |
|
| 32 |
# SGE Job Wrapper |
| 33 |
|
| 34 |
append-path PATH /share/sge/default/pe_scripts |
| 35 |
|
| 36 |
|
| 37 |
# |
| 38 |
# NPACI stuff |
| 39 |
# |
| 40 |
if { [file exists /usr/local/apps] } { |
| 41 |
setenv APPS /usr/local/apps |
| 42 |
setenv PURGE 96 |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
# |
| 47 |
# Location of local modules |
| 48 |
# |
| 49 |
set MODULEPATH_ROOT env("MODULEPATH_ROOT") |
| 50 |
set modulehome "$MODULEPATH_ROOT/TACC" |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
if { "$sys" == "AIX" } { |
| 55 |
append-path MANPATH /usr/local/virtman/AIX |
| 56 |
} |
| 57 |
|
| 58 |
append-path PATH ~/bin |
| 59 |
append-path PATH . |
| 60 |
|
| 61 |
append-path MANPATH /usr/local/man |
| 62 |
|
| 63 |
# 9/4/2006 - Addition for lonestar login nodes - intercept of passwd/chcsh to do |
| 64 |
# the right thing with 411. |
| 65 |
|
| 66 |
prepend-path PATH /usr/local/first |
| 67 |
|
| 68 |
# |
| 69 |
# Load system specific modules or cluster module |
| 70 |
# |
| 71 |
if [ expr [ module-info mode load ] || [module-info mode display ] ] { |
| 72 |
|
| 73 |
if { [file exists $moduleshome/$sys] } { |
| 74 |
module load $sys |
| 75 |
} |
| 76 |
|
| 77 |
if { [file exists $moduleshome/$node] } { |
| 78 |
module load $node |
| 79 |
} elseif { [file exists $moduleshome/cluster ] } { |
| 80 |
module load cluster |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
if [ module-info mode remove ] { |
| 85 |
|
| 86 |
if { [file exists $moduleshome/$sys] } { |
| 87 |
module del $sys |
| 88 |
} |
| 89 |
|
| 90 |
if { [file exists $moduleshome/$node] } { |
| 91 |
module del $node |
| 92 |
} elseif { [file exists $moduleshome/cluster ] } { |
| 93 |
module del cluster |
| 94 |
} |
| 95 |
} |
| 96 |
# ;;; Local Variables: *** |
| 97 |
# ;;; mode:tcl *** |
| 98 |
# ;;; End: *** |