Support caveats

Return a string from the brew yield block
This commit is contained in:
Max Howell 2009-05-21 02:46:54 +01:00
parent 86df92e94f
commit 8d7117c167

View File

@ -61,7 +61,12 @@ class Formula
tmp=`mktemp -dt #{@name}-#{@version}`.strip
Dir.chdir tmp do
Dir.chdir uncompress(tgz) do
yield prefix
caveats = yield prefix
if caveats
h1 "Caveats"
puts caveats
h1 "Summary"
end
#TODO copy changelog or CHANGES file to pkg root,
#TODO maybe README, etc. to versioned root
end