Home | History | Annotate | Download | only in sdkroot
      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 
      6 set -e
      7 
      8 found=false
      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
     18 fi
     19 
     20 test $SDKROOT = $expected
     21