Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Authentication-Warning: bazooka.micos.at: Host [195.1.0.67] claimed to be comple.at
Message-ID: <3BFA111E.273B409F@comple.at>
Date: Tue, 20 Nov 2001 09:15:26 +0100
From: Tibor =?iso-8859-1?Q?F=F6ldes?= <tfoeldes@comple.at>
Organization: comple.at
X-Mailer: Mozilla 4.75 [de] (X11; U; Linux 2.2.16 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Bruce@EckelObjects.com
CC: cygwin@cygwin.com
Subject: Re: OSTYPE missing
References: <200111192223430090.00F20FC3@mail.rdc1.sdca.home.com>
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit

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:
> join-eckel-oo-programming@earth.lyris.net
> 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/

