diff options
| author | Mike McQuaid | 2016-08-24 10:08:54 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-24 11:07:06 +0100 |
| commit | ec75fbcb65ac151f401ec3fb483a1a1acf63d5e4 (patch) | |
| tree | 44f45bea88e173847313980d112bb842e8c5a995 /Library/Homebrew | |
| parent | 3df7daa5bf172f7f46f987d20452e7977eec1618 (diff) | |
| download | brew-ec75fbcb65ac151f401ec3fb483a1a1acf63d5e4.tar.bz2 | |
cmd/man: deprecate --link option.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/man.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Library/Homebrew/cmd/man.rb b/Library/Homebrew/cmd/man.rb index 0191d76c7..c873e7568 100644 --- a/Library/Homebrew/cmd/man.rb +++ b/Library/Homebrew/cmd/man.rb @@ -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" |
