This file is indexed.

/usr/share/modules/init/cmake is in environment-modules 3.2.10-8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if(NOT ENV{MODULE_VERSION})
	set(ENV{MODULE_VERSION_STACK} "3.2.10")
	set(ENV{MODULE_VERSION} "3.2.10")
else()
	set(ENV{MODULE_VERSION_STACK} $ENV{MODULE_VERSION})
endif()

function(module ARGS)
  set(exec_prefix "/usr/bin")


  execute_process(COMMAND mktemp -t moduleinit.cmake.XXXXXXXXXXXX
		  OUTPUT_VARIABLE tempfile_name)
  execute_process(COMMAND ${exec_prefix}/modulecmd cmake ${ARGV}
		  OUTPUT_FILE ${tempfile_name})
  include(${tempfile_name})
endfunction(module)

set(ENV{MODULESHOME} "/usr/share/modules")

if(NOT ENV{MODULEPATH})
  file(STRINGS "$ENV{MODULESHOME}/init/.modulespath" cmi_mp1)
  string(REGEX REPLACE ";[ \n]+" ";" cmi_mp2 "${cmi_mp1}")
  string(REGEX REPLACE " *#[^;]*;" ";" cmi_mp3 "${cmi_mp2}")
  string(REGEX REPLACE " *#[^;]*$" "" cmi_mp4 "${cmi_mp3}")
  string(REPLACE ";;" ";" cmi_mp5 "${cmi_mp4}")
  string(STRIP "${cmi_mp5}" cmi_mp6)
  string(REPLACE ";" ":" ENV{MODULEPATH} "${cmi_mp6}")
endif()

if(NOT ENV{LOADEDMODULES})
  set(ENV{LOADEDMODULES} "")
endif()