Add some comments

This commit is contained in:
Adam Vandenberg 2012-07-09 08:39:23 -07:00
parent a8c05c9772
commit 50b2a32f9a

View File

@ -376,13 +376,15 @@ class FormulaInstaller
end end
def check_m4 def check_m4
# Newer versions of Xcode don't come with autotools
return if MacOS.xcode_version.to_f >= 4.3 return if MacOS.xcode_version.to_f >= 4.3
# If the user has added our path to dirlist, don't complain
return if File.open("/usr/share/aclocal/dirlist") do |dirlist| return if File.open("/usr/share/aclocal/dirlist") do |dirlist|
dirlist.grep(%r{^#{HOMEBREW_PREFIX}/share/aclocal$}).length > 0 dirlist.grep(%r{^#{HOMEBREW_PREFIX}/share/aclocal$}).length > 0
end rescue false end rescue false
# Check for m4 files # Check for installed m4 files
if Dir[f.share+"aclocal/*.m4"].length > 0 if Dir[f.share+"aclocal/*.m4"].length > 0
opoo 'm4 macros were installed to "share/aclocal".' opoo 'm4 macros were installed to "share/aclocal".'
puts "Homebrew does not append \"#{HOMEBREW_PREFIX}/share/aclocal\"" puts "Homebrew does not append \"#{HOMEBREW_PREFIX}/share/aclocal\""