DISTRHO Plugin Framework
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.

40 lines
704B

  1. #!/bin/bash
  2. # function not available on some systems
  3. if ! which realpath &>/dev/null; then
  4. function realpath() {
  5. [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
  6. }
  7. fi
  8. set -e
  9. if [ ! -d bin ]; then
  10. echo "Please run this script from the source root folder"
  11. exit
  12. fi
  13. PWD="$(dirname "${0}")"
  14. if [ -f "${PWD}/lv2_ttl_generator.exe" ]; then
  15. GEN="${PWD}/lv2_ttl_generator.exe"
  16. EXT=dll
  17. else
  18. GEN="$(realpath ${PWD}/lv2_ttl_generator)"
  19. if [ -d /Library/Audio ]; then
  20. EXT=dylib
  21. else
  22. EXT=so
  23. fi
  24. fi
  25. cd bin
  26. FOLDERS=`find . -type d -name \*.lv2`
  27. for i in ${FOLDERS}; do
  28. cd ${i}
  29. FILE="$(ls *.${EXT} | sort | head -n 1)"
  30. ${EXE_WRAPPER} "${GEN}" "./${FILE}"
  31. cd ..
  32. done