aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisty De Meo2013-03-26 20:38:14 -0500
committerMisty De Meo2013-03-26 20:38:50 -0500
commit8cc6d6d4135f25fda535d887004d19cab919d2d2 (patch)
tree6b66a4ed4a02655e3441612c04ca0a7ee816824a
parent9e8ffa941bdb0bc59a6288276fd369a0788fbd58 (diff)
downloadhomebrew-8cc6d6d4135f25fda535d887004d19cab919d2d2.tar.bz2
Update clang regex for build 425
Regex borrowed from MacOS.clang_build_version. Fixes #18755.
-rw-r--r--install4
1 files changed, 2 insertions, 2 deletions
diff --git a/install b/install
index 95a6ec02f..6d13e1338 100644
--- a/install
+++ b/install
@@ -167,9 +167,9 @@ warn "#{HOMEBREW_PREFIX}/bin is not in your PATH." unless ENV['PATH'].split(':')
if macos_version < 10.7
warn "Now install Xcode: https://developer.apple.com/xcode/" unless File.exist? "/usr/bin/cc"
else
- `/usr/bin/cc --version 2> /dev/null` =~ %r{tags/Apple/clang-(\d+)}
+ `/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 < 421
+ warn %{Install the "Command Line Tools for Xcode": http://connect.apple.com} if version < 425
end
ohai "Installation successful!"