diff options
Diffstat (limited to 'Library/Contributions/examples')
| -rwxr-xr-x | Library/Contributions/examples/brew-depstree.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Library/Contributions/examples/brew-depstree.rb b/Library/Contributions/examples/brew-depstree.rb deleted file mode 100755 index f8d6989b1..000000000 --- a/Library/Contributions/examples/brew-depstree.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'formula' - -module Homebrew extend self - def depstree - ARGV.formulae.each do |f| - puts f - recursive_deps_tree(f, 1) - puts - end - end - -private - def recursive_deps_tree(formula, level) - formula.deps.each do |dep| - puts "> "*level+dep - recursive_deps_tree(Formula.factory(dep), level+1) - end - end -end - -Homebrew.depstree |
