mxcl/homebrew — pull request #8439 by jacknagel (2011-11-04 02:20:34+00:00)
Title: Add a helper to determine the Clang build version

We have this for the other compilers, and this way we can show it in `brew --config` output.

The third commit fixes a bug that isn't really a bug, namely, to determine build versions we were parsing `compiler -v` (verbose) when we should have been parsing `compiler --version`. The version strings that we need to match remain the same. Doing it this way, we don't even need the "2>&1" redirection anymore, as the version is written to stdout, but meh.