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.

36 lines
591B

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