Debian Codegraph @

testsuite/modulefiles/info/command

raw
1 #%Module1.0
2
3 ##############################################################################
4 # Modules Revision 3.0
5 # Providing a flexible user environment
6 #
7 # File: info/%M%
8 # Revision: %I%
9 # First Edition: 2017/01/27
10 # Last Mod.: %U%, %G%
11 #
12 # Authors: Xavier Delaruelle, [email protected]
13 #
14 # Description: Testuite modulefile
15 # Command:
16 # Sub-Command: module-info command
17 #
18 # Invocation:
19 # Result: %R{
20 # }R%
21 # Comment: %C{
22 # This modulefile checks the string representations of
23 # the current module command returned by the
24 # 'module-info command' command
25 # }C%
26 #
27 ##############################################################################
28
29 proc ModulesHelp { } {
30 puts stderr "[module-info command]"
31 }
32
33 proc ModulesTest { } {
34 puts stderr "[module-info command]"
35 return 1
36 }
37
38 if { [module-info mode whatis] } {
39 module-whatis "[module-info command]"
40 } elseif {[module-info command] eq {mod-to-sh}} {
41 setenv INFOCMD [module-info command]
42 } elseif {[module-info mode] ne {scan}} {
43 puts stderr "[module-info command]"
44 }