| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 set -e | 6 set -e |
| 7 | 7 |
| 8 if ! expected=$(xcodebuild -version -sdk macosx10.6 Path 2>/dev/null) ; then | 8 found=false |
| 9 expected=$(xcodebuild -version -sdk macosx10.7 Path) | 9 for sdk in 10.6 10.7 10.8 10.9 ; do |
| 10 if expected=$(xcodebuild -version -sdk macosx$sdk Path 2>/dev/null) ; then |
| 11 found=true |
| 12 break |
| 13 fi |
| 14 done |
| 15 if ! $found ; then |
| 16 echo >&2 "cannot find installed SDK" |
| 17 exit 1 |
| 10 fi | 18 fi |
| 11 | 19 |
| 12 test $SDKROOT = $expected | 20 test $SDKROOT = $expected |
| OLD | NEW |