This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: $OSTYPE - Aaaaaaaaaaaaaaargh !
- To: "cygwin at sourceware dot cygnus dot com" <cygwin at sourceware dot cygnus dot com>
- Subject: Re: $OSTYPE - Aaaaaaaaaaaaaaargh !
- From: "Michael Ring" <Michael dot Ring at t-mobil dot de>
- Date: 31 May 2000 12:06:25 +0000
- Autoforwarded: FALSE
- Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3)
- Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (100), (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1)
- X400-Content-Identifier: C5128IMH31DNM
- X400-Content-Type: P2-1988 (22)
- X400-MTS-Identifier: [/PRMD=DTM/ADMD=DBP/C=DE/;A652397011D436FC00AAFD90]
- X400-Originator: Michael.Ring@t-mobil.de
- X400-Received: by mta MB400-SMTP in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 31 May 2000 12:06:25 +0000
- X400-Received: by mta MB400-DXCW04 in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 31 May 2000 12:06:25 +0000
- X400-Recipients: cygwin@sourceware.cygnus.com
On Wed, 31 May 00 14:00:08 +0100, you wrote:
>Hello,
>
>with the lastest version of the bash the content of $OSTYPE has changed from
"cygwin" to "cygwin32" again without further notice. Since I used this entry to
detect the old B20.1 from the new Cygnus V1.1 I have now a lot of broken scripts
and makefiles that have to run on both versions. This drives me really crazy!
>
It seems that this version of bash was compiled with the config.guess file
included in the bash distribution. This config.guess stills responds with
i686-pc-cygwin32
>So is there any *reliable* method to detect the version of Cygwin from a script
?
use uname; using bash is a bad idea because bash burns in the values it found on
the host it was built.
Here's how to get the information:
uname
returns CYGWIN_NT-4.0 or CYGWIN_NT-5.0 (don't know what it returns on
win95/98
uname -r
returns 1.1.2s(0.21/2/2) ore simmilar. everything before ( is the version
number; s seems to mean snapshot)
uname -m
returns i686
or, you could distribute config.guess with your script, it returns
i686-pc-cygwin
a good place to find config.guess is libtool-1.3.5.tar.gz on ftp.gnu.org
>
>Greetings,
>Jörg
Hope that helps,
Micjael Ring
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com