Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: test/mac/sdkroot/test_shorthand.sh

Issue 83073002: Fix gyptest-sdkroot when oldest SDK is >= 10.8 (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mac/gyptest-sdkroot.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « test/mac/gyptest-sdkroot.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698