lua-users home
lua-l archive

Re: LuaRocks help

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It's actually just a matter of editing the rockspec to add:
 bin = { "markdown.lua" },
after
 lua = { "markdown.lua" },
If you edit the rockspec this way and then install the modified
rockspec ("luarocks install /tmp/my_markdown.rockspec"), you'll be
able to run markdown with just:
./bin/markdown.lua < input.txt > output.html
At least that's how it works on Linux.
- yuri
> I can't quite work out how to do this in a rockspec and certainly not cross
> platformly, but it seems that a link is needed from
> ...luarocks\rocks\markdown\...\lua\markdown.lua to ...\luarocks\bin,円 and
> permissions on markdown.lua need a "+x".  Then it turned out that OS X
> barfed on the "#!/usr/bin/env lua" because markdown.lua had windows line
> ends.  It's all working now though!
-- 
http://spu.tnik.org/

AltStyle によって変換されたページ (->オリジナル) /