aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-13 09:45:27 -0700
committerAdam Vandenberg2010-08-13 09:45:27 -0700
commit741acf916ef11ac5983067bbc8de32f78ab21f94 (patch)
tree182231f7ee8857882a85359d19b49b4a4561a498 /bin
parent7c2841543d753184516c202f6337c948d52bcd1a (diff)
downloadbrew-741acf916ef11ac5983067bbc8de32f78ab21f94.tar.bz2
Add 'brew deps --all'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 960829b58..442b3e6da 100755
--- a/bin/brew
+++ b/bin/brew
@@ -263,10 +263,15 @@ begin
puts *uses.sort
when 'deps'
- require 'formula_installer'
- if ARGV.include?("-1") or ARGV.include?("--1")
+ if ARGV.include?('--all')
+ require 'formula'
+ Formula.all.each do |f|
+ puts "#{f.name}:#{f.deps.join(' ')}"
+ end
+ elsif ARGV.include?("-1") or ARGV.include?("--1")
puts *ARGV.formulae.map{ |f| f.deps or [] }.flatten.uniq.sort
else
+ require 'formula_installer'
puts *ARGV.formulae.map{ |f| FormulaInstaller.expand_deps(f).map{|f| f.name} }.flatten.uniq.sort
end