OC-PsychOS2/.buildactions/10_zlua.lua
Sam Roxanne 50cfb2bbf2 s m o l
2020-06-02 19:09:37 -05:00

19 lines
410 B
Lua

local function makezlua(file)
local path = file:match("^(.+)/.+%..+$")
os.execute("mkdir -p target/"..path)
os.execute("cat "..file.." | luamin -c | lua zlua.lua > target/"..file)
end
function actions.files()
local libs = find("lib", "*.lua")
local svcs = find("service", "*.lua")
for i=1, #libs do
makezlua(libs[i])
end
for i=1, #svcs do
makezlua(svcs[i])
end
end
actions[#actions+1] = "files"