On Thu, Dec 6, 2012 at 6:05 AM, steve donovan <steve.j.dono...@gmail.com> wrote:
> Hi all,
>
> A quick question:  I'm going to provide a SCM rock for Penlight, but
> first I need some clarification.  The directory structure has the
> source in a 'lua' subdirectory.
>
> So will this then work as expected?
>
> source = {
>   dir = 'lua',
>   url = "git://github.com/stevedonovan/Penlight.git"
> }

Actually, the bultin build mode has (as a leftover from early Kepler
days, IIRC), explicit support for Lua sources inside a "lua" dir:

      if fs.is_dir("lua") then
         ok = fs.copy_contents("lua", luadir)
         if not ok then err = "Failed copying contents of 'lua' directory." end
      end

So, if you're installing everything that's under 'lua', you shouldn't
even need to list the modules in the rockspec!

It's been a while since I last used that feature, though, so give it a
try and please report back if there are any problems.

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to