Commit a7fd9f01 authored by timeless%mac.com's avatar timeless%mac.com

Bugzilla Bug 109138 platform detection not working on macintosh

r=bbaetz,dkl
parent 8f6ab920
...@@ -248,14 +248,24 @@ sub pickos { ...@@ -248,14 +248,24 @@ sub pickos {
/\(.*WinNT.*\)/ && do {return "Windows NT";}; /\(.*WinNT.*\)/ && do {return "Windows NT";};
/\(.*32bit.*\)/ && do {return "Windows 95";}; /\(.*32bit.*\)/ && do {return "Windows 95";};
/\(.*16bit.*\)/ && do {return "Windows 3.1";}; /\(.*16bit.*\)/ && do {return "Windows 3.1";};
/\(.*Macintosh.*\)/ && do {return "Macintosh";};
/\(.*Mac OS 9.*\)/ && do {return "Mac System 9.x";}; /\(.*Mac OS 9.*\)/ && do {return "Mac System 9.x";};
/\(.*Mac OS 8\.6.*\)/ && do {return "Mac System 8.6";}; /\(.*Mac OS 8\.6.*\)/ && do {return "Mac System 8.6";};
/\(.*Mac OS 8.*\)/ && do {return "Mac System 8.5";}; /\(.*Mac OS 8\.5.*\)/ && do {return "Mac System 8.5";};
#we don't know 8.1
/\(.*Mac OS 8\.1.*\)/ && do {return "Mac System 8.0";};
/\(.*Mac OS 8\.0.*\)/ && do {return "Mac System 8.0";};
/\(.*Mac OS 8[^.].*\)/ && do {return "Mac System 8.0";};
/\(.*Mac OS 8.*\)/ && do {return "Mac System 8.6";};
/\(.*Darwin.*\)/ && do {return "MacOS X";};
#silly
/\(.*Mac.*PowerPC.*\)/ && do {return "Mac System 9.x";};
/\(.*Mac.*PPC.*\)/ && do {return "Mac System 9.x";};
/\(.*Mac.*68k.*\)/ && do {return "Mac System 8.0";};
#evil #evil
/Amiga/i && do {return "other";}; /Amiga/i && do {return "other";};
/\(.*68K.*\)/ && do {return "Mac System 8.5";}; /\(.*PowerPC.*\)/ && do {return "Mac System 9.x";};
/\(.*PPC.*\)/ && do {return "Mac System 8.5";}; /\(.*PPC.*\)/ && do {return "Mac System 9.x";};
/\(.*68K.*\)/ && do {return "Mac System 8.0";};
} }
} }
# default # default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment