From 76c86d1ac8dd450803866b98ae0c32a8157a1aeb Mon Sep 17 00:00:00 2001
From: Jack Nagel <jacknagel@gmail.com>
Date: Wed, 21 Mar 2012 12:47:25 -0500
Subject: [PATCH] Update missing Xcode advice

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
---
 Library/Homebrew/cmd/doctor.rb | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index caa9d3191e..0362b0d2f6 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
-- 
GitLab