Skip to content

Commit

Permalink
node: link npm manpages
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Nov 17, 2013
1 parent 2804767 commit 56d40d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Formula/node.rb
Expand Up @@ -74,6 +74,14 @@ def install

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

Expand Down

0 comments on commit 56d40d0

Please sign in to comment.