brew/Library/Contributions/cmd/brew-readall.rb

16 lines
417 B
Ruby
Raw Normal View History

# `brew readall` tries to import all formulae one-by-one.
# This can be useful for debugging issues across all formulae
2010-07-18 14:20:54 -07:00
# when making significant changes to formula.rb,
# or to determine if any current formulae have Ruby issues
require 'formula'
2010-07-18 14:20:54 -07:00
Formula.names.each do |n|
begin
2013-03-28 17:51:55 -05:00
Formula.factory(n)
2010-07-18 14:20:54 -07:00
rescue Exception => e
onoe "problem in #{Formula.path(n)}"
puts e
Homebrew.failed = true
2010-07-18 14:20:54 -07:00
end
end