diff options
| author | Misty De Meo | 2014-04-17 08:23:02 -0700 |
|---|---|---|
| committer | Misty De Meo | 2016-04-18 09:52:46 -0700 |
| commit | 19fba42c69de00888461a14ab75d3e3bb2b3fc13 (patch) | |
| tree | 01f73d9fe19d3603b3c43ff185dd22a9392cbd10 /Library/Homebrew/os/mac/xcode.rb | |
| parent | a1a81daffca376e0f9dff1754eb354e162c98686 (diff) | |
| download | brew-19fba42c69de00888461a14ab75d3e3bb2b3fc13.tar.bz2 | |
Xcode: update version detection for 2.x
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 4cb8666a4..9657073dc 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -85,6 +85,13 @@ module OS if File.file? path Utils.popen_read(path, "-version") =~ /Xcode (\d(\.\d)*)/ return $1 if $1 + + # Xcode 2.x's xcodebuild has a different version string + Utils.popen_read(path, "-version") =~ /DevToolsCore-(\d+\.\d)/ + case $1 + when "515.0" then return "2.0" + when "798.0" then return "2.5" + end end end |
