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.

46 lines
1.0KB

  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. if [ ! -f cabbage/CabbagePluginSynth.so ]; then exit 0; fi
  10. if [ ! -f cabbage/CabbagePluginMidi.so ]; then exit 0; fi
  11. if [ ! -f cabbage/CabbagePluginEffect.so ]; then exit 0; fi
  12. mkdir -p vst
  13. if [ -f ../libs/lv2_ttl_generator.exe ]; then
  14. EXT=dll
  15. else
  16. EXT=so
  17. fi
  18. FILES=`find ./cabbage -name \*.csd`
  19. for i in $FILES; do
  20. basename=`echo $i | awk 'sub("./cabbage/","")' | awk 'sub("/","\n")' | tail -n 1 | awk 'sub(".csd","")'`
  21. basename=`echo "cabbage-$basename"`
  22. if ( echo $i | grep "./cabbage/Synths/" > /dev/null ); then
  23. cp -v `pwd`/cabbage/CabbagePluginSynth.so vst/$basename.$EXT
  24. elif ( echo $i | grep "./cabbage/MIDI/" > /dev/null ); then
  25. cp -v `pwd`/cabbage/CabbagePluginMidi.so vst/$basename.$EXT
  26. else
  27. cp -v `pwd`/cabbage/CabbagePluginEffect.so vst/$basename.$EXT
  28. fi
  29. cp -v $i vst/$basename.csd
  30. done
  31. # Special files
  32. cp -v cabbage/Synths/bassline.snaps vst/
  33. cd ..