aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-09-10 12:38:17 -0500
committerMisty De Meo2012-09-13 10:18:21 -0500
commit5d69169ea15d6b0e8a1e252838b47572344f2d1a (patch)
tree6565669fac7db09664b70a6ab6aaba1c8698bf50 /Library
parentf3f67535cd5f0127f856cb5ccc8afdc274ea54b0 (diff)
downloadhomebrew-5d69169ea15d6b0e8a1e252838b47572344f2d1a.tar.bz2
doctor: Add check for stray pre-4.3 Xcode files
/Developer/Library shouldn't exist if all the remnants of old Xcode versions have been uninstalled, and tends to cause problems if it's kept alongside modern Xcode. "uninstall-developer-folder" should only remove /Developer/Library.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 36073daf3..6b9ce1d51 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -231,6 +231,16 @@ def check_for_latest_xcode
end
end
+def check_for_stray_developer_directory
+ if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library"
+ return <<-EOS.undent
+ You have leftover files from an older version of Xcode.
+ You should delete them using:
+ /Developer/Library/uninstall-developer-folder
+ EOS
+ end
+end
+
def check_cc
unless MacOS::CLT.installed?
if MacOS::Xcode.version >= "4.3"