Subject: Re: OSTYPE missing
From: Tibor Földes <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Tue, 20 Nov 2001 09:15:26 +0100

Bruce Eckel wrote:
> 
> I just updated to the latest Cygwin version, and suddenly the
> following lines in my makefile (which worked previously) are
> failing:
> 
> ifneq ($(OSTYPE),cygwin)
>   $(error Must be run under Cygwin, ostype is $(OSTYPE))
> endif
> 
> $(OSTYPE) is only producing '.'
> 
> Most current information can be found at:
> http://www.mindview.net/Etc/notes.html
> ===================
> Bruce Eckel    http://www.BruceEckel.com
> Contains free electronic books: "Thinking in Java 2e" & "Thinking
> in C++ 2e"
> Please subscribe to my free newsletter -- just send any email to:
> [email-masked]
> My schedule can be found at:
> http://www.mindview.net/Calendar
> ===================
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/

The problem is that bash not exports  OSTYPE .

Workaround :

export OSTYPE in ~/.bashrc

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/