install-linux.sh 950 B

12345678910111213141516171819202122232425262728
  1. #!/bin/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. echo "TEMP_FOLDER=${TEMP_FOLDER}"
  9. echo "TARGET_INSTALL_ROOT=${TARGET_INSTALL_ROOT}"
  10. # Get the install path from the build as the source for the final install package
  11. SRC_INSTALL_PACKAGE_PATH=${TEMP_FOLDER}/build/
  12. if [ ! -d ${SRC_INSTALL_PACKAGE_PATH} ]
  13. then
  14. echo "Invalid source package path ${SRC_INSTALL_PACKAGE_PATH}"
  15. exit 1
  16. fi
  17. cp -r ${SRC_INSTALL_PACKAGE_PATH}/include ${TARGET_INSTALL_ROOT}/
  18. cp -r ${SRC_INSTALL_PACKAGE_PATH}/cmake ${TARGET_INSTALL_ROOT}/
  19. cp -r ${SRC_INSTALL_PACKAGE_PATH}/bin ${TARGET_INSTALL_ROOT}/
  20. cp -r ${SRC_INSTALL_PACKAGE_PATH}/lib ${TARGET_INSTALL_ROOT}/
  21. cp -r ${SRC_INSTALL_PACKAGE_PATH}/NOTICE_C++_AMAZON_GAMELIFT_SDK.TXT ${TARGET_INSTALL_ROOT}/
  22. echo "Installation complete"
  23. exit 0