On Sun, Oct 10, 2010 at 4:55 AM, steve donovan
<[email protected]> wrote:
> Sometimes the structure of the archive is not LuaRocks-friendly,
> especially if one is packaging someone else's tarball.  The Github
> directory structure is an example, README.md (or .txt) needs to be at
> the top-level.
>
> So I was wondering if this feature would be sufficiently useful for inclusion:
>
> build.copy_files = { doc = 'README.md', test = 'tests/test.lua' }
>
> where the keys are the intended target directories, which would not be
> part of the archive. It could be used as well as copy_directories in
> its own sense, it's not exclusive.
>
> Useful also for packaging modules from prolific authors like lhf who
> just give you a readme and a test file - particularly so if there's no
> helpful website.
>
> I can prototype this feature if there is sufficient interest.

Sounds like 'copy_directories' and 'copy_files' could be generalized
into a single 'copy' entry -- it may be a good idea for the next
version of the rockspec format.

-- Hisham

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to