Skip to content

Commit

Permalink
Add name to brew info url and remove external script
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Jul 29, 2010
1 parent fb42d7a commit d458df7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 0 additions & 7 deletions Library/Homebrew/test/get_version.rb

This file was deleted.

9 changes: 8 additions & 1 deletion bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,14 @@ begin
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
end
elsif ARGV[0][0..6] == 'http://'
puts Pathname.new(ARGV.shift).version
path = Pathname.new(ARGV.shift)
/(.*?)[-_.]?#{path.version}/.match path.basename
unless $1.to_s.empty?
name = $1
else
name = path.stem
end
puts "#{name} #{path.version}"
else
ARGV.formulae.each{ |f| info f }
end
Expand Down

0 comments on commit d458df7

Please sign in to comment.