forked from izaya/OC-PsychOS2
19 lines
410 B
Lua
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" |