aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-17 14:49:43 -0600
committerJack Nagel2013-11-17 14:50:23 -0600
commit8dff5bab25862da77afc7ee1b296368a5feb8494 (patch)
tree843132fd86275aaab295a9a742cdc10b67567400 /Library
parente15484de16f4217870f5b9c9c16aadce3a542a7e (diff)
downloadhomebrew-8dff5bab25862da77afc7ee1b296368a5feb8494.tar.bz2
node: link npm manpages
Fixes #22397.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index fdce91443..3eb8ada33 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -74,6 +74,14 @@ class Node < Formula
unless build.include? 'without-npm'
(lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")
+
+ # Link npm manpages
+ Pathname.glob("#{lib}/node_modules/npm/man/*").each do |man|
+ dir = send(man.basename)
+ man.children.each do |file|
+ dir.install_symlink(file.relative_path_from(dir))
+ end
+ end
end
end