[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Lua modules, paths, man pages etc.
Am 07.10.11 09:58, schrieb Adam Hamsik:
> On Oct,Friday 7 2011, at 9:46 AM, Marc Balmer wrote:
>> I am working on a Lua module which I will commit soon (it's an interface
>> to gpio, so that gpio(4) can be used from Lua scripts).
> This is lua userspace module yes ?
Yes. Kernel support for Lua exists only on my machines ;)
>> Since this will be the first Lua module in our tree, it will set the
>> standard for further modules, so I think we should briefly think about
>> what to put where.
>> We need a place for the source code.
>> Is src/lib/lua<whatever>/ rasonable? (Lua modules that are written in C
>> are shared objects.). Or should it be src/lua/<whatever>/? I tend to
>> prefer the latter.
> Because destination dir is /usr/lib I would prefer to see lua modules in
> To have them better organized I would like to have them in their own subdir
Thats reasonable and ok to me.
>> We need a Makefile fragment.
Iain Hibbert posted one here earlier this year. We use that as starting
>> We need bsd.lua.mk. Ideas about that one?
>> Installation location.
>> Lua modules have to be installed in /usr/lib/lua/5.1/ (assuming Lua
>> 5.1). So that's an easy one.
>> Man pages.
>> I think that Lua modules should be documented. I suggest a new chapter
>> 'l' for man pages that document Lua modules, /usr/share/man/manl/ whould
>> then be the place.
Main Index |
Thread Index |