/ xcodescripts / abort_unsupported.sh
abort_unsupported.sh
 1  #!/bin/bash
 2  
 3  for platform in ${SUPPORTED_PLATFORMS} ; do
 4      [[ "${platform}" == "${PLATFORM_NAME}" ]] && exit 0
 5  done
 6  
 7  echo "Unsupported platform encountered:" >&2
 8  echo "    PLATFORM_NAME: ${PLATFORM_NAME}" >&2
 9  echo "    SUPPORTED_PLATFORMS: ${SUPPORTED_PLATFORMS}" >&2
10  echo "Please contact the Darwin Runtime Team for help with your new platform bringup needs" >&2
11  exit 1