node: fix manpage linkage

I goofed here on the manpage linkage and location. This fixes that
mistake. Given it’s post-install, shouldn’t be any need to regenerate
bottles or such.

Closes Homebrew/homebrew#35824.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Dominyk Tiller 2015-01-13 14:46:59 +00:00 committed by Mike McQuaid
parent 49d18cd499
commit 7b744d7765

View file

@ -98,7 +98,7 @@ class Node < Formula
# And then a step to the right, with your hand on rm_f.
["man1", "man3", "man5", "man7"].each do |man|
rm_f Dir[HOMEBREW_PREFIX/"share/man/#{man}/{npm.,npm-,npmrc.}*"]
Dir[share/"man/#{man}/npm*"].each {|f| ln_sf f, HOMEBREW_PREFIX/"share/man/#{man}" }
Dir[libexec/"npm/share/man/#{man}/npm*"].each {|f| ln_sf f, HOMEBREW_PREFIX/"share/man/#{man}" }
end
npm_root = node_modules/"npm"