mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
And include these modulefile examples as Tcl code in recipe document to get their content highlighted.
39 lines
846 B
Plaintext
39 lines
846 B
Plaintext
# Example modulefiles for compiler-etc-dependency cookbook
|
|
#
|
|
# Common stuff for intel
|
|
#
|
|
# Expects version to have been previously set
|
|
|
|
proc ModulesHelp { } {
|
|
global version
|
|
|
|
puts stderr "
|
|
This is the dummy Intel compiler suite modulefile for the cookbook
|
|
Handling Compiler and other Package Dependencies
|
|
|
|
It does not actually do anything
|
|
|
|
Version: $version
|
|
|
|
"
|
|
}
|
|
|
|
module-whatis "Dummy Intel $version for cookbook"
|
|
|
|
# Find the software root. In production, you should
|
|
# hardcode to your real software root
|
|
set gitroot $::env(MOD_GIT_ROOTDIR)
|
|
set swroot $gitroot/doc/example/compiler-etc-dependencies/dummy-sw-root
|
|
set pkgroot $swroot/intel
|
|
set vroot $pkgroot/$version
|
|
set bindir $vroot/bin
|
|
|
|
prepend-path PATH $bindir
|
|
|
|
# don't load multiple versions of this module (or other compilers)
|
|
conflict gcc
|
|
conflict gnu
|
|
conflict pgi
|
|
conflict intel
|
|
|