diff options
| author | Adam Vandenberg | 2010-05-31 12:06:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-01 16:25:35 -0700 |
| commit | 4777d6b4cf137ac1f23e469ffb08bd332d2bc090 (patch) | |
| tree | 4be96727cee7bf163df54632601c1d605463f66e | |
| parent | 54655a681f4c628f7e59990e22f0460c273c8874 (diff) | |
| download | brew-4777d6b4cf137ac1f23e469ffb08bd332d2bc090.tar.bz2 | |
Warn if a keg-level "man" is found.
Homebrew expects manpages to be linked in shared/man/...
and not man/...
| -rwxr-xr-x | Library/Homebrew/install.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index 9f8e8c689..58c8167d3 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 |
