Module: Utils::Link

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

Class Method Summary collapse

Class Method Details



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

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


66
67
68
# File 'Library/Homebrew/utils/link.rb', line 66

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


46
47
48
# File 'Library/Homebrew/utils/link.rb', line 46

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


60
61
62
63
64
# File 'Library/Homebrew/utils/link.rb', line 60

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


50
51
52
# File 'Library/Homebrew/utils/link.rb', line 50

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