diff options
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index c08887740..f18b908b2 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -264,6 +264,20 @@ module MacOS extend self MACOS_VERSION end + def cat + if mountain_lion? + :mountainlion + elsif lion? + :lion + elsif snow_leopard? + :snowleopard + elsif leopard? + :leopard + else + nil + end + end + def dev_tools_path @dev_tools_path ||= if File.file? "/usr/bin/cc" and File.file? "/usr/bin/make" # probably a safe enough assumption @@ -491,7 +505,7 @@ module MacOS extend self end def bottles_supported? - lion? and HOMEBREW_PREFIX.to_s == '/usr/local' and HOMEBREW_CELLAR.to_s == '/usr/local/Cellar' + HOMEBREW_PREFIX.to_s == '/usr/local' and HOMEBREW_CELLAR.to_s == '/usr/local/Cellar' end end |
