Move caveat handling to brew tool
This commit is contained in:
parent
b1f652910f
commit
97eb5a8292
@ -173,12 +173,6 @@ public
|
|||||||
Dir.chdir tmp do
|
Dir.chdir tmp do
|
||||||
Dir.chdir uncompress(tgz) do
|
Dir.chdir uncompress(tgz) do
|
||||||
yield self
|
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
|
||||||
end
|
end
|
||||||
rescue Interrupt, RuntimeError
|
rescue Interrupt, RuntimeError
|
||||||
|
|||||||
6
bin/brew
6
bin/brew
@ -226,8 +226,14 @@ begin
|
|||||||
o.prefix.mkpath
|
o.prefix.mkpath
|
||||||
o.brew { o.install }
|
o.brew { o.install }
|
||||||
ohai 'Finishing up'
|
ohai 'Finishing up'
|
||||||
|
#TODO copy changelog or CHANGES file to pkg root,
|
||||||
|
#TODO maybe README, etc. to versioned root
|
||||||
o.clean
|
o.clean
|
||||||
ln name
|
ln name
|
||||||
|
if o.caveats
|
||||||
|
ohai "Caveats"
|
||||||
|
puts o.caveats
|
||||||
|
end
|
||||||
puts "#{o.prefix}: "+abv(name)+", built in #{Time.now - beginning} seconds"
|
puts "#{o.prefix}: "+abv(name)+", built in #{Time.now - beginning} seconds"
|
||||||
end
|
end
|
||||||
when 'ln'
|
when 'ln'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user