brew edit and brew macports commmands

This commit is contained in:
Max Howell 2009-06-26 13:03:49 +01:00
parent a5bbf971ba
commit bcc7c19e85

View File

@ -217,6 +217,15 @@ begin
end end
raise 'No such keg' if fae.first.nil? and fae.length == 1 raise 'No such keg' if fae.first.nil? and fae.length == 1
puts `find #{fae.join' '} -type f -print` puts `find #{fae.join' '} -type f -print`
when 'macports'
exec "open 'http://www.macports.org/ports.php?by=name&substr=#{ARGV.shift}'"
when 'edit'
if ARGV.empty?
exec "mate #{$formula} #{$root}/Library/Homebrew #{$root}/bin/brew #{$root}/README"
else
exec "mate #{$formula}/#{ARGV.shift}.rb"
end
when 'install' when 'install'
shift_formulae_from_ARGV.each do |name| shift_formulae_from_ARGV.each do |name|
beginning = Time.now beginning = Time.now