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

cmd/man: deprecate --link option.

parent 3df7daa5
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ module Homebrew
raise UsageError unless ARGV.named.empty?
if ARGV.flag? "--link"
link_man_pages
odie "`brew man --link` is now done automatically by `brew update`."
else
regenerate_man_pages
end
......@@ -19,18 +19,6 @@ module Homebrew
private
def link_man_pages
linked_path = HOMEBREW_PREFIX/"share/man/man1"
if TARGET_MAN_PATH == linked_path
odie "The target path is the same as the linked one."
end
Dir["#{TARGET_MAN_PATH}/*.1"].each do |page|
FileUtils.ln_s page, linked_path
end
end
def regenerate_man_pages
Homebrew.install_gem_setup_path! "ronn"
......
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