mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
brew edit and brew macports commmands
This commit is contained in:
parent
a5bbf971ba
commit
bcc7c19e85
9
bin/brew
9
bin/brew
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user