Skip to content
Snippets Groups Projects
Commit 03352805 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

tap: use utils link_path_manpages.

parent 8cc027a3
No related branches found
No related tags found
No related merge requests found
......@@ -248,26 +248,7 @@ class Tap
end
def link_manpages
return unless (path/"man").exist?
conflicts = []
(path/"man").find do |src|
next if src.directory?
dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path)
next if dst.symlink? && src == dst.resolved_path
if dst.exist?
conflicts << dst
next
end
dst.make_relative_symlink(src)
end
unless conflicts.empty?
onoe <<-EOS.undent
Could not link #{name} manpages to:
#{conflicts.join("\n")}
Please delete these files and run `brew tap --repair`.
EOS
end
link_path_manpages(path, "brew tap --repair")
end
# uninstall this {Tap}.
......
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