diff options
Diffstat (limited to 'Library/Contributions/cmds/brew-readall.rb')
| -rwxr-xr-x | Library/Contributions/cmds/brew-readall.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Contributions/cmds/brew-readall.rb b/Library/Contributions/cmds/brew-readall.rb new file mode 100755 index 000000000..d04de565d --- /dev/null +++ b/Library/Contributions/cmds/brew-readall.rb @@ -0,0 +1,14 @@ +# `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 + f = Formula.factory(n) + rescue Exception => e + onoe "problem in #{Formula.path(n)}" + puts e + end +end |
