Cross-Platform build scripts for audio plugins
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.

42 lines
1.1KB

  1. #!/bin/bash
  2. set -e
  3. cd $(dirname ${0})
  4. PAWPAW_ROOT="${PWD}"
  5. # ---------------------------------------------------------------------------------------------------------------------
  6. target="${1}"
  7. if [ -z "${target}" ]; then
  8. echo "usage: ${0} <target>"
  9. exit 1
  10. fi
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. source setup/check_target.sh
  13. source setup/env.sh
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. set -u
  16. echo "Cleaning up build dir..."
  17. rm -rf ${PAWPAW_BUILDDIR}/*/*
  18. rm -rf ${PAWPAW_BUILDDIR}/*/._*
  19. rm -rf ${PAWPAW_BUILDDIR}/*/.hg*
  20. rm -rf ${PAWPAW_BUILDDIR}/*/.git*
  21. rm -rf ${PAWPAW_BUILDDIR}/*/.waf-*
  22. rm -rf ${PAWPAW_BUILDDIR}/*/.deps
  23. rm -rf ${PAWPAW_BUILDDIR}/*/.libs
  24. rm -rf ${PAWPAW_BUILDDIR}/*/.lock-waf_linux_build
  25. for dir in $(find "${PAWPAW_BUILDDIR}" -maxdepth 1 -type d); do
  26. echo "Directory '${dir}' is now clean"
  27. touch ${dir}/.stamp_cleanup
  28. done
  29. # ---------------------------------------------------------------------------------------------------------------------