aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-05-21 16:46:45 -0500
committerJack Nagel2014-05-21 16:48:38 -0500
commit69fc90dd0121542f11ceec88403f871f8ed23436 (patch)
tree71e36545fc92b26aa78303335a0122a1c40ed1b2
parent123286af18d74b42aa99cb921a11d527fa7b9d58 (diff)
downloadhomebrew-69fc90dd0121542f11ceec88403f871f8ed23436.tar.bz2
Allow Xcode to satisfy the installer
-rwxr-xr-xinstall5
1 files changed, 3 insertions, 2 deletions
diff --git a/install b/install
index b5377f231..c76cb2196 100755
--- a/install
+++ b/install
@@ -156,8 +156,9 @@ end
sudo "/bin/mkdir", HOMEBREW_CACHE unless File.directory? HOMEBREW_CACHE
sudo "/bin/chmod", "g+rwx", HOMEBREW_CACHE
-if macos_version > "10.8"
- unless File.exist? "/Library/Developer/CommandLineTools/usr/bin/clang"
+if macos_version >= "10.9"
+ developer_dir = `/usr/bin/xcode-select -print-path 2>/dev/null`.chomp
+ if developer_dir.empty? || !File.exist?("#{developer_dir}/usr/bin/clang")
ohai "Installing the Command Line Tools (expect a GUI popup):"
sudo "/usr/bin/xcode-select", "--install"
puts "Press any key when the installation has completed."