-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.0beta.lua
More file actions
26 lines (20 loc) · 882 Bytes
/
1.0beta.lua
File metadata and controls
26 lines (20 loc) · 882 Bytes
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
help([==[
Description
===========
Fast Module Loader for Lmod
More information
================
- Homepage: https://github.com/cvsindelar/fml
]==])
whatis([==[Description: Fast Module Loader for Lmod-Based HPC Software Stacks]==])
whatis([==[Homepage: https://github.com/cvsindelar/FastModLoad]==])
whatis([==[URL: https://github.com/cvsindelar/FastModLoad]==])
-- add_property("lmod","sticky")
local root = "/vast/palmer/home.mccleary/cvs2/programs/FastModLoad"
local script = pathJoin(root, "fml.sh")
if myShellType() == "sh" then
execute {cmd="eval \"$( bash " .. script .. " " .. myFileName() .. " init " .. " )\" ; ", modeA={"load"}}
execute {cmd="eval $( bash " .. script .. " " .. myFileName() .. " exit " .. " ) ; ", modeA={"unload"}}
else
execute {cmd="echo 'FML: sorry, this is not implemented for shell type ".. myShellType() .. "' >&2", modeA={"load"}}
end