Hi Philipp,

On Jan 31, 2014, at 11:15 AM, Philipp Janda <siffie...@gmx.net> wrote:

> Am 30.01.2014 16:40 schröbte Hisham:
>> On 30 January 2014 07:30, Gary V. Vaughan <g...@vaughan.pe> wrote:
>>> Hi Hisham,
>>> 
>>> In principle, would you accept a pull request if I did the work (though I 
>>> know the internals of LuaRocks almost not at all, so I might need some 
>>> pointers and a bit of help here and there)?
>> 
>> And will you maintain it afterwards? (IOW, can I ping you if bug
>> reports about it come up?)
> 
> Manpages is still my favorite online documentation format (sadly not 
> many scripting languages since perl use it), so I'd be willing to help 
> with that ...

Awesome, thanks :)

>> The way to go about it would be to add an optional flag `--man` to
>> luarocks/path.lua (like we have with `--bin`) and also, for
>> consistency, to add knowledge about man pages to luarocks/doc.lua
>> (though I really don't want to spread logic on finding the `man`
>> binary all over the place, the way we did it for the web browser. Just
>> assume you can os.execute("man ...") if cfg.is_platform("unix")
>> returns true).
> 
> We would also need `--lr-man` (because Lua 5.2 users can't use the eval 
> trick without messing up their Lua 5.1 paths).

Can you explain that a bit more, please?  I'm guessing you want --lr-man
to output just the additional MANPATH directories so you can wrap that up
and call it without getting your LUA_PATH and LUA_CPATH trampled?

> I'm not sure about the 
> `luarocks doc` integration, that seems rather complicated ...

I think having the man pages listed as present by `luarocks doc` is
perfectly adequate already.  It's not luarocks' job to analyze whatever
the rock packager felt would be useful to add to the doc directory and
figure out how to display it, IMHO.

Cheers,
-- 
Gary V. Vaughan (gary AT vaughan DOT pe)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to