From 871b25cf0b81d93233eaecac7efdf7d577c51bfc Mon Sep 17 00:00:00 2001 From: Eloy Duran Date: Tue, 8 Sep 2009 00:02:28 +0200 Subject: Update Homebrew and list the updated formulae. --- bin/brew | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin') 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}"} -- cgit v1.2.3