Skip to content
Snippets Groups Projects
Commit 4777d6b4 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Warn if a keg-level "man" is found.

Homebrew expects manpages to be linked in shared/man/...
and not man/...
parent 54655a68
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment