diff options
| author | Adam Vandenberg | 2010-06-08 11:24:07 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-16 09:52:27 -0700 |
| commit | 9638c1820a20aa82e2f1dc5b8e374cc0e6426832 (patch) | |
| tree | b1df8a8e5fdd5f88d2dfcde529300dee405cf217 /Library | |
| parent | 69b99011318786c47ecf00d929269c80886cd570 (diff) | |
| download | brew-9638c1820a20aa82e2f1dc5b8e374cc0e6426832.tar.bz2 | |
External command: upgrade
Reinstalls out outdated brews.
See: http://github.com/mxcl/homebrew/issues/issue/1324
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-upgrade.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-upgrade.rb b/Library/Contributions/examples/brew-upgrade.rb new file mode 100755 index 000000000..6c7831fde --- /dev/null +++ b/Library/Contributions/examples/brew-upgrade.rb @@ -0,0 +1,11 @@ +# Updates all outdated brews +# See: http://github.com/mxcl/homebrew/issues/issue/1324 + +# patch ARGV to use all of the outdated packages as the names passed in +module HomebrewArgvExtension + def formulae + @formulae = outdated_brews.map {|_keg, name, _version| Formula.factory name} + end +end + +brew_install |
