From 4777d6b4cf137ac1f23e469ffb08bd332d2bc090 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 31 May 2010 12:06:52 -0700 Subject: [PATCH] Warn if a keg-level "man" is found. Homebrew expects manpages to be linked in shared/man/... and not man/... --- Library/Homebrew/install.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 9f8e8c6896..58c8167d30 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -146,6 +146,14 @@ def install f end end + # Check for possibly misplaced folders + if (f.prefix+'man').exist? + opoo 'A top-level "man" folder was found.' + puts "Homebrew requires that man pages live under share." + puts 'This can often be fixed by passing "--mandir=#{man}" to configure,' + puts 'or by installing manually with "man1.install \'mymanpage.1\'".' + end + # link from Cellar to Prefix begin Keg.new(f.prefix).link