aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-03-01 16:57:14 +0000
committerMax Howell2012-03-01 16:57:14 +0000
commit489aba4e98b8e9c8b572385bf9e7a93a1fa8b465 (patch)
tree56549f192d241ab6b0df10929f8994715e9ac498
parent4f5dadd8cfcc598e12b59b8a2cfec77e0dfa606e (diff)
downloadhomebrew-489aba4e98b8e9c8b572385bf9e7a93a1fa8b465.tar.bz2
The doctor suggests upgrading Xcode
Closes #9199.
-rw-r--r--Library/Homebrew/cmd/doctor.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index b192b72a4..57dfa7f90 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -198,6 +198,19 @@ def check_xcode_exists
end
end
+def check_for_latest_xcode
+ latest_xcode = case MacOS.version
+ when 10.5 then "3.1.4"
+ when 10.6 then "3.2.6"
+ else "4.3"
+ end
+ if MacOS.xcode_version < latest_xcode then <<-EOS.undent
+ Your Xcode version is outdated
+ Please install Xcode #{v}.
+ EOS
+ end
+end
+
def check_cc
unless File.exist? '/usr/bin/cc'
<<-EOS.undent