aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/macos.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-11-05 15:40:46 +0000
committerMike McQuaid2017-11-05 15:40:46 +0000
commit195f77abb0138b4c387ad6dd451ddf9c49152b26 (patch)
treeb5c04fec9bece24844bc6ec2ef5e69198168841c /Library/Homebrew/compat/macos.rb
parent603d6fd1f56a6edb37cbbc70cf1cbfe892455082 (diff)
downloadbrew-195f77abb0138b4c387ad6dd451ddf9c49152b26.tar.bz2
MACOS_*VERSION: move to compat.
Diffstat (limited to 'Library/Homebrew/compat/macos.rb')
-rw-r--r--Library/Homebrew/compat/macos.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/macos.rb b/Library/Homebrew/compat/macos.rb
index 3acd2f9ef..1f2c651c5 100644
--- a/Library/Homebrew/compat/macos.rb
+++ b/Library/Homebrew/compat/macos.rb
@@ -1,5 +1,10 @@
require "development_tools"
+if OS.mac?
+ MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze
+ MACOS_VERSION = OS::Mac.version.to_s.freeze
+end
+
module OS
module Mac
module_function