env_mac.sh 519 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. #
  9. set -o errexit # exit on the first failure encountered
  10. if ! command -v cmake &> /dev/null; then
  11. echo "[ci_build] CMake not found"
  12. exit 1
  13. fi
  14. if [[ -n "${COMMAND_CWD}" ]]; then
  15. echo $(eval echo [ci_build] Changing CWD to $COMMAND_CWD)
  16. cd $(eval echo ${COMMAND_CWD})
  17. fi