Use MACOS_VERSION in bin/brew

This commit is contained in:
Max Howell 2009-09-25 18:12:19 +01:00
parent 4b5d39feab
commit b7bf860a48

View File

@ -17,11 +17,11 @@ end
# http://github.com/mxcl/homebrew/issues/#issue/48 # http://github.com/mxcl/homebrew/issues/#issue/48
fix_PATH fix_PATH
if `/usr/bin/sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i < 5 if MACOS_VERSION < 10.5
onoe "Homebrew requires Leopard or higher" onoe "Homebrew currently requires Leopard or higher"
abort "But thanks for your interest anyway!" abort "Sorry about that, but thanks for your interest anyway!"
end 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." abort "Sorry, Homebrew does not support your computer's CPU architecture."
end end
unless system "/usr/bin/which -s gcc-4.2" unless system "/usr/bin/which -s gcc-4.2"