brew info url shows calls extract version

This is so I can test the version detection logic before doing brew mk. It's a
debug feature basically.
This commit is contained in:
Max Howell 2009-06-18 09:50:32 +01:00
parent b94e10ce20
commit dfc93c6a97

View File

@ -286,12 +286,24 @@ begin
if ARGV.empty? if ARGV.empty?
puts abv puts abv
else else
o=__obj shift_formulae_from_ARGV[0] if ARGV[0][0..6] == 'http://'
puts "#{o.name} #{o.version}" require 'brewkit'
puts o.homepage path=Pathname.new ARGV[0]
if abv=abv(o.name) basename=File.basename path, path.extname
ohai "Installation" v=extract_version basename
puts abv puts v
else
o=__obj shift_formulae_from_ARGV[0]
puts "#{o.name} #{o.version}"
puts o.homepage
if abv=abv(o.name)
ohai "Installation"
puts abv
end
if o.caveats
ohai 'Caveats'
puts o.caveats
end
end end
if o.caveats if o.caveats
ohai 'Caveats' ohai 'Caveats'