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 # Check for "not set", not just "empty": 9 [[ ! $MACH_O_TYPE && ${MACH_O_TYPE-_} ]] 10 [[ ! $PRODUCT_TYPE && ${PRODUCT_TYPE-_} ]] 11 test $PRODUCT_NAME = nonbundle_none 12 [[ ! $FULL_PRODUCT_NAME && ${FULL_PRODUCT_NAME-_} ]] 13 14 [[ ! $EXECUTABLE_NAME && ${EXECUTABLE_NAME-_} ]] 15 [[ ! $EXECUTABLE_PATH && ${EXECUTABLE_PATH-_} ]] 16 [[ ! $WRAPPER_NAME && ${WRAPPER_NAME-_} ]] 17 18 [[ ! $DYLIB_INSTALL_NAME_BASE && ${DYLIB_INSTALL_NAME_BASE-_} ]] 19 [[ ! $LD_DYLIB_INSTALL_NAME && ${LD_DYLIB_INSTALL_NAME-_} ]] 20 21 # Should be set, but empty. 22 [[ ! $SDKROOT && ! ${SDKROOT-_} ]] 23