aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-03-21 12:47:25 -0500
committerJack Nagel2012-03-21 12:47:51 -0500
commit76c86d1ac8dd450803866b98ae0c32a8157a1aeb (patch)
tree90c97e7335b4d1c563b56b46c0089f51d714eb45 /Library
parent5dc15272d9fa925bd801e4b54b8fe91040ae2b21 (diff)
downloadbrew-76c86d1ac8dd450803866b98ae0c32a8157a1aeb.tar.bz2
Update missing Xcode advice
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index caa9d3191..0362b0d2f 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -182,10 +182,18 @@ def check_for_broken_symlinks
end
def check_for_latest_xcode
- if MacOS.xcode_version.nil? then return <<-EOS.undent
- We couldn't detect any version of Xcode.
- If you downloaded Xcode from the App Store, you may need to run the installer.
- EOS
+ if MacOS.xcode_version.nil?
+ if MacOS.version >= 10.7 then return <<-EOS.undent
+ We couldn't detect any version of Xcode.
+ The latest Xcode can be obtained from the Mac App Store.
+ Alternatively, the Command Line Tools package can be obtained from
+ http://connect.apple.com
+ EOS
+ else return <<-EOS.undent
+ We couldn't detect any version of Xcode.
+ The latest Xcode can be obtained from http://connect.apple.com
+ EOS
+ end
end
latest_xcode = case MacOS.version