aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-24 13:16:33 -0500
committerJack Nagel2014-09-24 13:16:33 -0500
commite5c42895a86bb32b68a46ef00ee486d1608e00f5 (patch)
tree294fd7aca9bf5522dd6671fee3e30bf0541db550 /Library
parent7b396a5e99a17e74f91fde3b69a15ca8a5063b56 (diff)
downloadbrew-e5c42895a86bb32b68a46ef00ee486d1608e00f5.tar.bz2
Add doctor check for unbrewed header files
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index ca56360d8..252e755ff 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -178,6 +178,18 @@ def check_for_stray_las
EOS
end
+def check_for_stray_headers
+ white_list = {} # TODO whitelist MacFuse/OSXFuse headers
+
+ __check_stray_files "/usr/local/include/**/*.h", white_list, <<-EOS.undent
+ Unbrewed header files were found in /usr/local/include.
+ If you didn't put them there on purpose they could cause problems when
+ building Homebrew formulae, and may need to be deleted.
+
+ Unexpected header files:
+ EOS
+end
+
def check_for_other_package_managers
ponk = MacOS.macports_or_fink
unless ponk.empty?