ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt on Mac OS X
@ 2001-05-20 14:21 Xander Schrijen
  2001-05-20 21:29 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Xander Schrijen @ 2001-05-20 14:21 UTC (permalink / raw)


Hi,

I tried to get ConTeXt working on Mac OS X and ran into some 
trouble with the way the texexec script tests on which OS its 
running.  OS X's 'unix name' is "darwin", which matches "win", 
so there you go.  I've fixed it with the patch at the end of 
this message, but perhaps someone can come up with a more 
elegant one.

It _does_ work now:
	http://www.phil.uu.nl/~xges/context.png

Xander.
-------------- Patch for texexec -------------------
48c48,49
< my $dosish  = ($Config{'osname'} =~ /dos|win/i) ;
---
 > my $dosish  = ($Config{'osname'} =~ /dos|win/i) -
 >               ($Config{'osname'} == 'darwin') ;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt on Mac OS X
  2001-05-20 14:21 ConTeXt on Mac OS X Xander Schrijen
@ 2001-05-20 21:29 ` Hans Hagen
  2001-05-21  9:02   ` Xander Schrijen
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2001-05-20 21:29 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 04:21 PM 5/20/01 +0200, Xander Schrijen wrote:
>Hi,
>
>I tried to get ConTeXt working on Mac OS X and ran into some 
>trouble with the way the texexec script tests on which OS its 
>running.  OS X's 'unix name' is "darwin", which matches "win", 
>so there you go.  I've fixed it with the patch at the end of 
>this message, but perhaps someone can come up with a more 
>elegant one.
>
>It _does_ work now:
>	http://www.phil.uu.nl/~xges/context.png
>
>
>Xander.
>-------------- Patch for texexec -------------------
>48c48,49
>< my $dosish  = ($Config{'osname'} =~ /dos|win/i) ;
>---
> > my $dosish  = ($Config{'osname'} =~ /dos|win/i) -
> >               ($Config{'osname'} == 'darwin') ;

well, this fails here, so maybe /dos|mswin/i is better.

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt on Mac OS X
  2001-05-20 21:29 ` Hans Hagen
@ 2001-05-21  9:02   ` Xander Schrijen
  2001-05-21  9:59     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Xander Schrijen @ 2001-05-21  9:02 UTC (permalink / raw)
  Cc: ConTeXt mailing list

On Sunday, May 20, 2001, at 11:29  PM, Hans Hagen wrote:

> At 04:21 PM 5/20/01 +0200, Xander Schrijen wrote:
>>

[texexec thinks Mac OS X is dosish...]

>> -------------- Patch for texexec -------------------
>> 48c48,49
>> < my $dosish  = ($Config{'osname'} =~ /dos|win/i) ;
>> ---
>>> my $dosish  = ($Config{'osname'} =~ /dos|win/i) -
>>>               ($Config{'osname'} == 'darwin') ;
>
> well, this fails here, so maybe /dos|mswin/i is better.

Whoops.  That's because I hardly know any perl.  "man perlop" 
tells me I should've used 'eq' instead of '==', but your 
solution is better anyway.
(I _also_ don't know what osname a windows machine has ;-)

Xander.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ConTeXt on Mac OS X
  2001-05-21  9:02   ` Xander Schrijen
@ 2001-05-21  9:59     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2001-05-21  9:59 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 11:02 AM 5/21/01 +0200, Xander Schrijen wrote:

>(I _also_ don't know what osname a windows machine has ;-)

mine is named "MSWin32"

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-21  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-20 14:21 ConTeXt on Mac OS X Xander Schrijen
2001-05-20 21:29 ` Hans Hagen
2001-05-21  9:02   ` Xander Schrijen
2001-05-21  9:59     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).