aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-09-25 18:12:19 +0100
committerMax Howell2009-09-25 19:30:19 +0100
commitb7bf860a48d553cbd0442b8e6cb89c2c7b4218f6 (patch)
tree0056c7a736a6cf2068fc3a488ea72cc31dfdd45e
parent4b5d39feabf0f3f2d525a253e3e616761ced7753 (diff)
downloadbrew-b7bf860a48d553cbd0442b8e6cb89c2c7b4218f6.tar.bz2
Use MACOS_VERSION in bin/brew
-rwxr-xr-xbin/brew8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/brew b/bin/brew
index b543e9597..909472d64 100755
--- a/bin/brew
+++ b/bin/brew
@@ -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"