diff options
| author | Mike McQuaid | 2013-10-25 22:14:19 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-25 22:14:19 +0100 |
| commit | 23446e14d112ebc04722b07f3aa8b9f1b094863c (patch) | |
| tree | 424c49b95e536f01675955a6695c74c1e51d89c8 | |
| parent | a37956c8c4e93dab6fe9df6d594ea3359624004f (diff) | |
| download | homebrew-23446e14d112ebc04722b07f3aa8b9f1b094863c.tar.bz2 | |
Install CLT on 10.9.
| -rwxr-xr-x | install | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -172,12 +172,17 @@ end warn "#{HOMEBREW_PREFIX}/bin is not in your PATH." unless ENV['PATH'].split(':').include? "#{HOMEBREW_PREFIX}/bin" -if macos_version < 10.7 - warn "Now install Xcode: https://developer.apple.com/xcode/" unless File.exist? "/usr/bin/cc" -else +if macos_version > 10.8 + unless File.exist? "/Library/Developer/CommandLineTools/usr/bin/clang" + ohai "Installing the Command Line Tools:" + sudo "/usr/bin/xcode-select", "--install" + end +elsif macos_version > 10.6 `/usr/bin/cc --version 2> /dev/null` =~ %r[clang-(\d{2,})] version = $1.to_i warn %{Install the "Command Line Tools for Xcode": http://connect.apple.com} if version < 425 +else + warn "Now install Xcode: https://developer.apple.com/xcode/" unless File.exist? "/usr/bin/cc" end ohai "Installation successful!" |
