File: sh.in

package info (click to toggle)
lmod 8.7.60-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,008 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (39 lines) | stat: -rw-r--r-- 800 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

LMOD_ROOT="@lmod_root@"
LMOD_PKG="@PKG@"
LMOD_DIR="@PKG@/libexec"
LMOD_CMD="@PKG@/libexec/lmod"
MODULESHOME="@PKG@"

export LMOD_CMD
export LMOD_PKG
export LMOD_DIR
export MODULESHOME

module()
{
  eval "`$LMOD_CMD sh "$@"`"
}

clearMT()
{
  eval $($LMOD_DIR/clearLMOD_cmd --shell bash --simple)
}

########################################################################
#  ml is a shorthand tool for people who can't type moduel, err, module
#  It is also a combination command:
#     ml            -> module list
#     ml gcc        -> module load gcc
#     ml -gcc intel -> module unload gcc; module load intel
#  It does much more do: "ml --help" for more information.
ml()
{
  eval "$($LMOD_DIR/ml_cmd "$@")"
}

# Local Variables:
# mode: shell-script
# indent-tabs-mode: nil
# End: