Module: Utils::Link

Defined in:
brew/Library/Homebrew/utils/link.rb

Class Method Summary collapse

Class Method Details



62
63
64
65
66
# File 'brew/Library/Homebrew/utils/link.rb', line 62

def link_completions(path, command)
  link_src_dst_dirs(path/"completions/bash", HOMEBREW_PREFIX/"etc/bash_completion.d", command)
  link_src_dst_dirs(path/"completions/zsh", HOMEBREW_PREFIX/"share/zsh/site-functions", command)
  link_src_dst_dirs(path/"completions/fish", HOMEBREW_PREFIX/"share/fish/vendor_completions.d", command)
end


74
75
76
# File 'brew/Library/Homebrew/utils/link.rb', line 74

def link_docs(path, command)
  link_src_dst_dirs(path/"docs", HOMEBREW_PREFIX/"share/doc/homebrew", command, link_dir: true)
end


54
55
56
# File 'brew/Library/Homebrew/utils/link.rb', line 54

def link_manpages(path, command)
  link_src_dst_dirs(path/"manpages", HOMEBREW_PREFIX/"share/man/man1", command)
end


68
69
70
71
72
# File 'brew/Library/Homebrew/utils/link.rb', line 68

def unlink_completions(path)
  unlink_src_dst_dirs(path/"completions/bash", HOMEBREW_PREFIX/"etc/bash_completion.d")
  unlink_src_dst_dirs(path/"completions/zsh", HOMEBREW_PREFIX/"share/zsh/site-functions")
  unlink_src_dst_dirs(path/"completions/fish", HOMEBREW_PREFIX/"share/fish/vendor_completions.d")
end


58
59
60
# File 'brew/Library/Homebrew/utils/link.rb', line 58

def unlink_manpages(path)
  unlink_src_dst_dirs(path/"manpages", HOMEBREW_PREFIX/"share/man/man1")
end