prerm.in 615 B

1234567891011121314151617181920212223
  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. {
  11. pushd @CPACK_PACKAGING_INSTALL_PREFIX@
  12. # delete __pycache__
  13. rm -rf scripts/o3de/o3de/__pycache__
  14. # delete the user folder
  15. rm -rf bin/Linux/profile/Default/user
  16. # delete any generated egg-link files
  17. find . -type d -name *.egg-info -prune -exec rm -rf {} \;
  18. popd
  19. } &> /dev/null # hide output