aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-09-01 09:39:17 -0700
committerAdam Vandenberg2011-09-01 09:39:31 -0700
commitb90f374da3d032f3dd46f1ac600cb68ecb7df487 (patch)
treeeba94b9137b18fce6b23dd9bb535961058168127 /Library
parentfd7f661c04fcd83e4e26f8d2e2d802dac0b2a32f (diff)
downloadhomebrew-b90f374da3d032f3dd46f1ac600cb68ecb7df487.tar.bz2
add brew doctor check for spaces in Xcode path
Diffstat (limited to 'Library')
-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 170a259c9..70935ac89 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -314,6 +314,18 @@ def check_homebrew_prefix
end
end
+def check_xcode_prefix
+ prefix = MacOS.xcode_prefix
+ return if prefix.nil?
+ if prefix.to_s.match(' ')
+ puts <<-EOS.undent
+ Xcode is installed to a folder with a space in the name.
+ This may cause some formulae, such as libiconv, to fail to build.
+
+ EOS
+ end
+end
+
def check_user_path
seen_prefix_bin = false
seen_prefix_sbin = false
@@ -738,6 +750,7 @@ module Homebrew extend self
begin
check_usr_bin_ruby
check_homebrew_prefix
+ check_xcode_prefix
check_for_macgpg2
check_for_stray_dylibs
check_for_stray_static_libs