aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMisty De Meo2012-09-10 12:38:17 -0500
committerMisty De Meo2012-09-13 10:18:21 -0500
commit0329307770678a125bfe4e61d42fc30f9f3d1e04 (patch)
tree8b78c9a3288dfa700741d3a3e3cb10d64b90f653 /Library/Homebrew/cmd
parent5ce864176a34215b0991ed30b93732b830dced66 (diff)
downloadbrew-0329307770678a125bfe4e61d42fc30f9f3d1e04.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/Homebrew/cmd')
-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"