Debian Codegraph @

doc/example/compiler-etc-dependencies/flavours/gnu/common

raw
1 # Common stuff for "pgi" modulefiles
2 # Using "flavours" strategy
3 #
4 # Expects the following Tcl variables to have been previously set:
5 # version: version of gnu compiler collection
6
7 # Initialise "flavours"
8 package require flavours
9 flavours init
10
11 proc ModulesHelp { } {
12 global version
13
14 puts stderr "
15 This is the dummy GNU compiler suite modulefile for the cookbook
16 Handling Compiler and other Package Dependencies
17
18 It does not actually do anything
19
20 gnu version: $version
21
22 "
23 }
24
25 module-whatis "Dummy Gnu $version for cookbook"
26
27 # Find the software root. In production, you should
28 # hardcode to your real software root
29 set gitroot $::env(MOD_GIT_ROOTDIR)
30 set swroot $gitroot/doc/example/compiler-etc-dependencies/dummy-sw-root
31 # While flavours wants the module named gnu, the software install is in gcc
32 set pkgroot $swroot/gcc
33 set vroot $pkgroot/$version
34 set bindir $vroot/bin
35
36 prepend-path PATH $bindir
37
38 # don't load multiple versions of this module (or other compilers)
39 conflict gcc
40 conflict gnu
41 conflict pgi
42 conflict intel
43
44 # Reload any modules with this as a prerequisite
45 flavours cleanup