Skip to content

Commit 62d377e

Browse files
committed
generate named entities in luarocks
1 parent f0ff0ad commit 62d377e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rockspecs/mhluaxml-dev-1.rockspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ source = {
55
}
66
dependencies = {
77
"lua >= 5.3",
8-
"lpeg >= 1.0.2"
8+
"lpeg >= 1.0.2",
9+
"dkjson"
910
}
1011
description = {
1112
summary = "LuaXML is pure lua library for reading and serializing of the XML files.",
@@ -32,5 +33,8 @@ build = {
3233
["luaxml.stack"] = "luaxml-stack.lua",
3334
["luaxml.testxml"] = "luaxml-testxml.lua",
3435
["luaxml.transform"] = "luaxml-transform.lua"
35-
}
36+
},
37+
build_command = [[
38+
lua data/jsontolua.lua < data/entities.json > luaxml-namedentities.lua
39+
]]
3640
}

0 commit comments

Comments
 (0)