Source

modulefiles / use.own

#%Module1.0#####################################################################
##
## use.own modulefile
##
## modulefiles/use.own.  Generated from use.own.in by configure.
##
proc ModulesHelp { } {
	global rkoversion

	puts stderr "\tThis module file will add \$HOME/privatemodules to the"
	puts stderr "\tlist of directories that the module command will search"
	puts stderr "\tfor modules.  Place your own module files here."
	puts stderr "\tThis module, when loaded, will create this directory"
	puts stderr "\tif necessary."
	puts stderr "\n\tVersion $rkoversion\n"
}

module-whatis	"adds your own modulefiles directory to MODULEPATH"

# for Tcl script use only
set	rkoversion	3.2.9

eval set  [ array get env HOME ]
set	ownmoddir	$HOME/privatemodules

# create directory if necessary
if [ module-info mode load ] {
	if { ! [ file exists $ownmoddir ] } {
		file mkdir $ownmoddir
		set null [open $ownmoddir/null w]
	puts $null "#%Module########################################################################"
	puts $null "##"
	puts $null "## null modulefile"
	puts $null "##"
	puts $null "proc ModulesHelp { } {"
	puts $null "        global version"
	puts $null ""
	puts $null "        puts stderr \"\tThis module does absolutely nothing.\""
	puts $null "        puts stderr \"\tIt's meant simply as a place holder in your\""
	puts $null "	puts stderr \"\tdot file initialization.\""
	puts $null "        puts stderr \"\n\tVersion \$version\n\""
	puts $null "}"
	puts $null ""
	puts $null "module-whatis	\"does absolutely nothing\""
	puts $null ""
	puts $null "# for Tcl script use only"
	puts $null "set     version      3.2.9"
	}
}

module use $ownmoddir
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.