brew/Library/Contributions/cmd/brew-readall.rb
2013-03-28 17:51:55 -05:00

15 lines
390 B
Ruby
Executable File

# `brew readall` tries to import all formulae one-by-one.
# This can be useful for debugging issues across all formulae
# when making significant changes to formula.rb,
# or to determine if any current formulae have Ruby issues
require 'formula'
Formula.names.each do |n|
begin
Formula.factory(n)
rescue Exception => e
onoe "problem in #{Formula.path(n)}"
puts e
end
end