bug 372836 - tinderbox changes to work with MSYS/MozillaBuild - fix MSYS sysinfo. r=preed

This commit is contained in:
ted.mielczarek%gmail.com 2007-08-09 19:54:58 +00:00
Родитель 3fe9919a3a
Коммит c48145cb6d
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.366 $ ';
$::UtilsVersion = '$Revision: 1.367 $ ';
package TinderUtils;
@ -314,9 +314,11 @@ sub GetSystemInfo {
$os_ver =~ s/^([0-9])([0-9]*)$/$1.$2/;
}
if ($Settings::OS =~ /^CYGWIN_(.*?)-(.*)$/) {
if ($Settings::OS =~ /^CYGWIN_(.*?)-(.*)$/ ||
$Settings::OS =~ /^MINGW32_(.*?)-(.*)$/) {
# the newer cygwin apparently has different output for 'uname'
# e.g., CYGWIN_98-4.10 == win98SE, and CYGWIN_NT-5.0 == win2k
# also MSYS
$Settings::OS = 'WIN' . $1;
$os_ver = $2;
$host =~ tr/A-Z/a-z/;