diff options
| author | Mike McQuaid | 2016-09-06 09:04:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-06 09:04:51 +0100 |
| commit | 1160d0e347d09ea57df4cf943f5ff35736657cc0 (patch) | |
| tree | e4bfe13fcd605f9addc2f4da623f768bccadae5b /Library/Homebrew/cmd | |
| parent | 3ebc5a88e89aa321ef7aa31900873b91d99cfd01 (diff) | |
| download | brew-1160d0e347d09ea57df4cf943f5ff35736657cc0.tar.bz2 | |
update-report: also link docs, completions.
These are more files in the HOMEBREW_REPOSITORY that we want to link to
the HOMEBREW_PREFIX.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/update-report.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index e1ac3ec67..45d9f4f4a 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -88,7 +88,7 @@ module Homebrew puts if ARGV.include?("--preinstall") end - link_manpages + link_completions_and_docs Tap.each(&:link_manpages) Homebrew.failed = true if ENV["HOMEBREW_UPDATE_FAILED"] @@ -163,9 +163,16 @@ module Homebrew end end - def link_manpages + def link_completions_and_docs return if HOMEBREW_PREFIX.to_s == HOMEBREW_REPOSITORY.to_s - link_path_manpages(HOMEBREW_REPOSITORY/"share", "brew update") + command = "brew update" + link_src_dst_dirs(HOMEBREW_REPOSITORY/"etc/bash_completion.d", + HOMEBREW_PREFIX/"etc/bash_completion.d", command) + link_src_dst_dirs(HOMEBREW_REPOSITORY/"share/doc/homebrew", + HOMEBREW_PREFIX/"share/doc/homebrew", command, link_dir: true) + link_src_dst_dirs(HOMEBREW_REPOSITORY/"share/zsh/site-functions", + HOMEBREW_PREFIX/"share/zsh/site-functions", command) + link_path_manpages(HOMEBREW_REPOSITORY/"share", command) end end |
