You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
793 B

  1. # Exit on errors
  2. set -e
  3. SCRIPT_DIR=$(dirname "$0")
  4. PREFIX=$1
  5. # Get Absolute Paths & Setup
  6. SCRIPT_DIR=$(dirname "$0")
  7. pushd "${SCRIPT_DIR}"
  8. SCRIPT_DIR=$(pwd)
  9. popd
  10. if [ "${PREFIX}" = "" ]; then
  11. PREFIX="${SCRIPT_DIR}/local"
  12. fi
  13. if [ -d "${PREFIX}" ]; then
  14. pushd "${PREFIX}"
  15. PREFIX=$(pwd)
  16. popd
  17. fi
  18. TMP_DIR="${SCRIPT_DIR}/tmp"
  19. PARENT_DIR="${SCRIPT_DIR}/.."
  20. # Whipe Repositories
  21. sh ${SCRIPT_DIR}/clean_repos_in_parent_dir.sh
  22. rm -rf "${TMP_DIR}/libpEpAdapter"
  23. rm -rf "${TMP_DIR}/pEpJSONServerAdapter"
  24. rm -rf "${TMP_DIR}/webserver"
  25. # Whipes build artefacts
  26. rm -rf "${PREFIX}/apps"
  27. rm -rf "${PREFIX}/lib/"libasn1*
  28. rm -rf "${PREFIX}/lib/"*sqlite*
  29. rm -rf "${PREFIX}/lib/"*libetpan*
  30. rm -rf "${PREFIX}/lib/"*pEp*
  31. rm -rf "${PREFIX}/bin/"*pEp*
  32. rm -rf "${PREFIX}/include/pEp"