← Back to team overview

context team mailing list archive

Re: minimals for cygwin

 

On Tue, Jul 27 2010, Mojca Miklavec wrote:

> For luatools, take a look at the chunk of code that reads as below and
> try to patch it and send a patch to Hans:

Hello,

Here a small patch that works for me:

--- mtxrun-old  2010-07-30 12:17:07.019313600 +0200
+++ mtxrun  2010-07-30 12:18:24.615050000 +0200
@@ -1910,7 +1910,8 @@
 
 -- we can use HOSTTYPE on some platforms
 
-local name, platform = os.name or "linux", os.getenv("MTX_PLATFORM") or ""
+local name, platform = os.name or "linux", os.getenv("MTX_PLATFORM") or
+string.match(table.concat(arg, " "), " --platform=(.-) ") or ""
 
 local function guess()
     local architecture = os.resultof("uname -m") or ""

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/





References