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.

33 lines
531B

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