Hi All,
I have a small script that reads and parses 2 text files. I wanted to create a luarock which packs both the script and static resources to be parsed. How should I organize my "build" section in rockspec file?
Currently I have the following:
build = {
type = "builtin",
modules = {
myscript = "src/lua-myscript.lua"
},
copy_directories = {"data"}
}
And the package dir sctructure:
lua-myscript-1.0/
scr/
lua-myascript.lua
data/
data1.txt
data2.txt
I thought that "copy_directories" will do the work, but it didn't. The module complains that it can't find the resources. Is there a predefined path where luarocks installs all the "copy_directories" data? How should I do it correctly?
Best,
Pavel