This will allow us to replace code like
os = if OS.mac?
"Darwin"
else
"Linux"
end
with a call to `OS.uname`. Doing
rg '= (if )?OS\.(mac|linux)\?'
returns about 70 matches, so there are probably at least a handful of
formulae that could be simplified by this.
Library
This directory contains all the code run by the official brew command in Homebrew and all formulae (package descriptions) in taps (repositories containing formulae) in Taps subdirectories.