mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Support caveats
Return a string from the brew yield block
This commit is contained in:
parent
86df92e94f
commit
8d7117c167
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user