node@0.12: copy rather than symlink manpages

This commit is contained in:
Dominyk Tiller 2017-06-02 03:02:21 +01:00 committed by ilovezfs
parent cc9772920c
commit 2fd24eb178

View file

@ -108,7 +108,7 @@ class NodeAT012 < Formula
# Dirs must exist first: https://github.com/Homebrew/homebrew/issues/35969
mkdir_p HOMEBREW_PREFIX/"share/man/#{man}"
rm_f Dir[HOMEBREW_PREFIX/"share/man/#{man}/{npm.,npm-,npmrc.,package.json.}*"]
ln_sf Dir[libexec/"npm/lib/node_modules/npm/man/#{man}/{npm,package.json}*"], HOMEBREW_PREFIX/"share/man/#{man}"
cp Dir[libexec/"npm/lib/node_modules/npm/man/#{man}/{npm,package.json}*"], HOMEBREW_PREFIX/"share/man/#{man}"
end
npm_root = node_modules/"npm"