diff options
| author | Jack Nagel | 2013-11-16 14:10:23 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-16 14:10:25 -0600 |
| commit | 674d041d804be070c5a6836ae03ce573c68ece84 (patch) | |
| tree | 2e123e1061756b6ac19ec9985b992ff766e693f1 /Library/Contributions | |
| parent | 4366b7956f068f2a582c7899187a4265912b6b39 (diff) | |
| download | brew-674d041d804be070c5a6836ae03ce573c68ece84.tar.bz2 | |
Move brew-leaves into core
Closes Homebrew/homebrew#24371.
Diffstat (limited to 'Library/Contributions')
| -rwxr-xr-x | Library/Contributions/cmd/brew-leaves.rb | 29 | ||||
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 3 |
2 files changed, 3 insertions, 29 deletions
diff --git a/Library/Contributions/cmd/brew-leaves.rb b/Library/Contributions/cmd/brew-leaves.rb index b1296598b..e69de29bb 100755 --- a/Library/Contributions/cmd/brew-leaves.rb +++ b/Library/Contributions/cmd/brew-leaves.rb @@ -1,29 +0,0 @@ -# Outputs formulae that are installed but are not a dependency for -# any other installed formula. -# See: http://github.com/mxcl/homebrew/issues/issue/1438 - -require 'formula' -require 'set' -require 'tab' - -installed = Formula.installed -deps_of_installed = Set.new - -installed.each do |f| - deps = [] - - f.deps.each do |dep| - if dep.optional? || dep.recommended? - tab = Tab.for_formula(f) - deps << dep.name if tab.with?(dep.name) - else - deps << dep.name - end - end - - deps_of_installed.merge(deps) -end - -installed.each do |f| - puts f.name unless deps_of_installed.include? f.name -end diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 6ba333e06..280664704 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -197,6 +197,9 @@ Note that these flags should only appear after a command. If `--git` is passed, Homebrew will create a Git repository, useful for creating patches to the software. + * `leaves`: + Show installed formulae that are not dependencies of another installed formula. + * `ln`, `link [--overwrite] [--dry-run] [--force]` <formula>: Symlink all of <formula>'s installed files into the Homebrew prefix. This is done automatically when you install formula, but can be useful for DIY |
