Show summary headings when appropriate

This commit is contained in:
Max Howell 2011-06-16 17:38:39 +01:00
parent 1587c70357
commit 1d606388b4

View File

@ -152,6 +152,7 @@ def install f
opoo 'A top-level "man" folder was found.' opoo 'A top-level "man" folder was found.'
puts "Homebrew requires that man pages live under share." puts "Homebrew requires that man pages live under share."
puts 'This can often be fixed by passing "--mandir=#{man}" to configure.' puts 'This can often be fixed by passing "--mandir=#{man}" to configure.'
show_summary_heading = true
end end
# Check for info pages that aren't in share/info # Check for info pages that aren't in share/info
@ -159,6 +160,7 @@ def install f
opoo 'A top-level "info" folder was found.' opoo 'A top-level "info" folder was found.'
puts "Homebrew suggests that info pages live under share." puts "Homebrew suggests that info pages live under share."
puts 'This can often be fixed by passing "--infodir=#{info}" to configure.' puts 'This can often be fixed by passing "--infodir=#{info}" to configure.'
show_summary_heading = true
end end
# Check for Jars in lib # Check for Jars in lib
@ -169,6 +171,7 @@ def install f
puts "For Java software, it is typically better for the formula to" puts "For Java software, it is typically better for the formula to"
puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"." puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
puts "See \"activemq\", \"jruby\", etc. for examples." puts "See \"activemq\", \"jruby\", etc. for examples."
show_summary_heading = true
end end
end end
@ -178,6 +181,7 @@ def install f
puts "Homebrew does not append \"#{HOMEBREW_PREFIX}/share/aclocal\"" puts "Homebrew does not append \"#{HOMEBREW_PREFIX}/share/aclocal\""
puts "to \"/usr/share/aclocal/dirlist\". If an autoconf script you use" puts "to \"/usr/share/aclocal/dirlist\". If an autoconf script you use"
puts "requires these m4 macros, you'll need to add this path manually." puts "requires these m4 macros, you'll need to add this path manually."
show_summary_heading = true
end end
# link from Cellar to Prefix # link from Cellar to Prefix
@ -187,11 +191,7 @@ def install f
onoe "The linking step did not complete successfully" onoe "The linking step did not complete successfully"
puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}" puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}"
puts "You can try again using `brew link #{f.name}'" puts "You can try again using `brew link #{f.name}'"
if ARGV.debug? ohai e, e.backtrace if ARGV.debug?
ohai e, e.backtrace
else
onoe e
end
show_summary_heading = true show_summary_heading = true
end end