source: trunk/modulefile

Last change on this file was 4, checked in by willem, 9 years ago

willem

File size: 724 bytes
Line 
1#%Module
2##
3##        disparm 1.1
4##
5
6proc ModulesHelp { } {
7        puts stderr "Sets up paths you need to use the disparm software"
8}
9
10set root /home/willem/myroot/sara/sw/disparm-1.1
11
12if { [ module-info shelltype ] == "csh" } {
13  set-alias disparm  "eval \"`$root/bin/disparmcmd $*`\""
14} else {
15         if { [module-info mode] == "load" } {
16
17#         set-alias disparm "disparm_helper() { eval \"`$root/bin/disparmcmd \"$@\"`\"; }; disparm_helper"
18            puts stdout "disparm() { eval \"`$root/bin/disparmcmd \"$@\"`\"; }; export -f disparm;"
19         } else {
20            puts stdout "unset disparm;"
21         }
22}
23
24prepend-path PATH               $root/bin
25prepend-path MANPATH            $root/man
26
27setenv SARA_DISPARM_ROOT          $root
Note: See TracBrowser for help on using the repository browser.