OC-Tsuki/.buildactions/40_coreutils.lua
Jane Roxanne e44d6177a0 kio++
2020-06-02 01:14:26 -05:00

37 lines
1.0 KiB
Lua

do
--local coreutils = {}
--local function add_coreutil(name, outfolder, args)
-- args = args or {}
-- if not os.execute("[[ -d build/coreutils/"..outfolder.." ]]") then
-- os.execute("mkdir -p build/coreutils/"..outfolder)
-- end
-- actions["coreutil_"..name] = function()
-- local data = velx("coreutils/"..name..".lua", nil, args)
-- local h = io.open("build/coreutils/"..outfolder.."/"..name..".velx", "w")
-- h:write(data)
-- h:close()
-- end
-- coreutils[#coreutils+1] = name
--end
--add_coreutil("init", "sbin")
--add_coreutil("shutdown", "sbin")
--add_coreutil("sh", "sbin")
--add_coreutil("uname", "sbin")
--function actions.coreutils()
-- for i=1, #coreutils do
-- actions["coreutil_"..coreutils[i]]()
-- end
--end
local version = "0.1"
function actions.coreutils()
print("Building coreutils...")
os.execute("mkdir -p build/coreutils")
local sks = io.open("build/coreutils/sks.velx", "w")
sks:write(velx("coreutils/multicall.lua", false, {
SKS_COREUTILS_VERSION = version
}))
end
actions[#actions+1] = "coreutils"
end