External command: upgrade
Reinstalls out outdated brews. See: http://github.com/mxcl/homebrew/issues/issue/1324
This commit is contained in:
parent
69b9901131
commit
9638c1820a
11
Library/Contributions/examples/brew-upgrade.rb
Executable file
11
Library/Contributions/examples/brew-upgrade.rb
Executable file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user