On Wed, Aug 28, 2013 at 9:43 AM, Tom N Harris <[email protected]> wrote: > On Unix-ish systems this would be the output of `uname -r`. For Windows, it's > found by parsing the output of `ver`. Unless there's a way to get the specific > version more directly. I think there is but it uses WMI and would involve > either JScript/VBScript or PowerShell.
That would be enough, I think. 'cscript' is available on any Windows version of the last decade, if one wants to make finer distinctions. cfg.lua becoming so involved is an opportunity for refactoring into platform-specific parts. Cleaner, and also allows for a useful division of labour, since Hisham cheerfully admits to his Windows-lessness. 'platform.win.cfg' is then a separate module and can be separately updated as a rock. The install scripts could do more as well, especially if they are done in Lua (the batch file for Windows is particularly scary) ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
