aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-01 18:36:46 -0500
committerJack Nagel2014-05-01 18:36:46 -0500
commitaa5a5a526f4b847df2ad9d12dcd7569e526dff32 (patch)
treeff58d9ea44130c68397fb1f84a67d16db323c816 /Library/Homebrew/os/mac.rb
parent4b335eb2df8f64208ccf26da291c11691d7c6474 (diff)
downloadbrew-aa5a5a526f4b847df2ad9d12dcd7569e526dff32.tar.bz2
Rename Xcode.folder to MacOS.active_developer_dir
This reflects what Apple calls it in more recent versions of Xcode/OS X.
Diffstat (limited to 'Library/Homebrew/os/mac.rb')
-rw-r--r--Library/Homebrew/os/mac.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 6ed35440d..c2dd1a1f6 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -36,6 +36,10 @@ module OS
end
end
+ def active_developer_dir
+ @active_developer_dir ||= `xcode-select -print-path 2>/dev/null`.strip
+ end
+
def dev_tools_prefix
dev_tools_path.parent.parent
end