• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
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
4# found in the LICENSE file.
5
6set -e
7
8found=false
9for 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
14done
15if ! $found ; then
16  echo >&2 "cannot find installed SDK"
17  exit 1
18fi
19
20test $SDKROOT = $expected
21