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.

34 lines
469B

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