Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Allow taps to link manpages. #46795

Closed
wants to merge 1 commit into from
Closed

Allow taps to link manpages. #46795

wants to merge 1 commit into from

Conversation

MikeMcQuaid
Copy link
Member

A blocker for Homebrew/homebrew-cask#15381 being merged.

@@ -122,6 +122,8 @@ def install(options = {})
puts "Tapped #{formula_count} formula#{plural(formula_count, "e")} (#{@path.abv})"
Descriptions.cache_formulae(formula_names)

link
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to put it before puts "Tapped....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MikeMcQuaid
Copy link
Member Author

@xu-cheng comments addressed.

(path/"man").find do |src|
next if src.directory?
dst = HOMEBREW_PREFIX/src.relative_path_from(path)
dst.delete if dst.exist?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check the dst is a symlink pointed to this tap. Also we need to remove dir if possible.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@xu-cheng
Copy link
Member

xu-cheng commented Dec 8, 2015

👍

@MikeMcQuaid
Copy link
Member Author

Fixed conflicts, used .parent (vs. .dirname) consistently and merged.

@MikeMcQuaid MikeMcQuaid deleted the tap-link-man branch December 9, 2015 09:12
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants