Debian Codegraph @

doc/example/compiler-etc-dependencies/homebrewed/gcc/common

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