diff options
| author | Max Howell | 2009-09-25 18:12:19 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-25 19:30:19 +0100 |
| commit | deeb33a47c8b121f31cd70455b46ba9fdd0ad503 (patch) | |
| tree | 1236c65cd7c53723e7cca64e0c27580efd087c2a /bin | |
| parent | 07f331bffa9124400fa3b943651fa618e365478a (diff) | |
| download | homebrew-deeb33a47c8b121f31cd70455b46ba9fdd0ad503.tar.bz2 | |
Use MACOS_VERSION in bin/brew
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,11 +17,11 @@ end # http://github.com/mxcl/homebrew/issues/#issue/48 fix_PATH -if `/usr/bin/sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i < 5 - onoe "Homebrew requires Leopard or higher" - abort "But thanks for your interest anyway!" +if MACOS_VERSION < 10.5 + onoe "Homebrew currently requires Leopard or higher" + abort "Sorry about that, but thanks for your interest anyway!" end -if Hardware.cpu_type == :ppc or Hardware.cpu_type == :dunno +case Hardware.cpu_type when :ppc, :dunno abort "Sorry, Homebrew does not support your computer's CPU architecture." end unless system "/usr/bin/which -s gcc-4.2" |
