aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index bd57b7103..79ac11520 100755
--- a/bin/brew
+++ b/bin/brew
@@ -110,6 +110,17 @@ begin
end
+ when 'up', 'update'
+ require 'refresh_brew'
+ updater = RefreshBrew.new
+ unless updater.update_from_masterbrew!
+ ohai "Already up-to-date."
+ else
+ ohai "Updated Homebrew to: #{updater.current_revision}"
+ ohai "No formulae were updated." unless updater.pending_formulae_changes?
+ ohai "The following formulae were updated: #{updater.updated_formulae.join(', ')}"
+ end
+
when 'ln', 'link'
ARGV.kegs.each {|keg| puts "#{keg.link} links created for #{keg}"}