diff options
| author | Dominyk Tiller | 2015-01-17 04:07:57 +0000 |
|---|---|---|
| committer | Tim D. Smith | 2015-01-16 23:46:36 -0800 |
| commit | 6002678fbfb49c25220385a3842ca560febf9f1e (patch) | |
| tree | dd005515c96f3aac65d0056847fe860ed1e47d0b /Library | |
| parent | a885e6596abef123bfc9dd60e0d1ed6ba4b147a6 (diff) | |
| download | homebrew-6002678fbfb49c25220385a3842ca560febf9f1e.tar.bz2 | |
node: fix manpage linkage
Fixes the situation where the links would skew in the event that
man1, man3, man5 and/or man7 didn't exist. This should be pretty rare
unless from a clean system, but this will guard against the failure
at least.
Closes #35969. Closes #35971.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/node.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index c9ce4c826..b1376df13 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -97,6 +97,8 @@ class Node < Formula # Let's do the manpage dance. It's just a jump to the left. # And then a step to the right, with your hand on rm_f. ["man1", "man3", "man5", "man7"].each do |man| + # 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.}*"] Dir[libexec/"npm/share/man/#{man}/npm*"].each {|f| ln_sf f, HOMEBREW_PREFIX/"share/man/#{man}" } end |
