projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* luci/libs/uvl:
[project/luci.git]
/
libs
/
uvl
/
root
/
usr
/
bin
/
uvlc
1
#!/usr/bin/lua
2
3
4
if arg[1] then
5
require("luci.util")
6
require("luci.uvl")
7
require("luci.fs")
8
9
local uvl = luci.uvl.UVL()
10
local scheme, err = uvl:get_scheme( arg[1] )
11
12
if scheme then
13
luci.fs.writefile(
14
"%s/bytecode/%s.lua" %{ uvl.schemedir, arg[1] },
15
luci.util.get_bytecode(scheme)
16
)
17
else
18
print("Error:", err:string())
19
end
20
else
21
print( "Usage: uvlc <scheme>" )
22
end