delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <C2D7D58DBFE9D111B0480060086E96350288AE8B@mail.gft.de> |
From: | "Schaible, Joerg" <Joerg DOT Schaible AT gft DOT com> |
To: | "Cygwin (E-mail 3)" <cygwin AT cygwin DOT com> |
Subject: | RE: testing if it's cygwin |
Date: | Fri, 17 Nov 2000 17:00:36 +0100 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id LAA17488 |
Hi Kris ans Karsten, > > what would be the recommended way of testing (in a shell > > script file, or a > > Makefile) if it's being run on CYGWIN? > > At the moment, I do > > uname > > and test on CYGWIN-NT4.0, but that seems like a bad idea, > as I want to > > support W9? or W2000 as well. Also, it relies on the > > existence of uname of > > course... I use if ( test `uname | grep -ic Cygwin` -gt 0 ); then echo "Cygwin" fi > I check the environment variable OSTYPE for "cygwin" in my makefiles. > However, I don't know if it's reliable. It's not. Changed from cygwin to cygwin32 and back to cygwin. Greetings, Jörg -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |