From 50b2a32f9a264b8a1297da6a56e37afa2c02510c Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 9 Jul 2012 08:39:23 -0700 Subject: [PATCH] Add some comments --- Library/Homebrew/formula_installer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index a7fd0d07fd..5356f166ec 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -376,13 +376,15 @@ class FormulaInstaller end def check_m4 + # Newer versions of Xcode don't come with autotools 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| dirlist.grep(%r{^#{HOMEBREW_PREFIX}/share/aclocal$}).length > 0 end rescue false - # Check for m4 files + # Check for installed m4 files if Dir[f.share+"aclocal/*.m4"].length > 0 opoo 'm4 macros were installed to "share/aclocal".' puts "Homebrew does not append \"#{HOMEBREW_PREFIX}/share/aclocal\""