Move caveat handling to brew tool

This commit is contained in:
Max Howell 2009-06-05 13:43:49 +01:00
parent b1f652910f
commit 97eb5a8292
2 changed files with 6 additions and 6 deletions

View File

@ -173,12 +173,6 @@ public
Dir.chdir tmp do
Dir.chdir uncompress(tgz) do
yield self
if caveats
ohai "Caveats"
puts caveats
end
#TODO copy changelog or CHANGES file to pkg root,
#TODO maybe README, etc. to versioned root
end
end
rescue Interrupt, RuntimeError

View File

@ -226,8 +226,14 @@ begin
o.prefix.mkpath
o.brew { o.install }
ohai 'Finishing up'
#TODO copy changelog or CHANGES file to pkg root,
#TODO maybe README, etc. to versioned root
o.clean
ln name
if o.caveats
ohai "Caveats"
puts o.caveats
end
puts "#{o.prefix}: "+abv(name)+", built in #{Time.now - beginning} seconds"
end
when 'ln'