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
565B

  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 [ ! -d /Developer ]; then
  11. echo "This doesn't seem to be OSX, please stop!"
  12. exit 0
  13. fi
  14. cd vst
  15. PLUGINS=`ls | grep dylib`
  16. for i in $PLUGINS; do
  17. FILE=`echo $i | awk 'sub(".dylib","")'`
  18. cp -r ../../scripts/plugin.vst/ $FILE.vst
  19. cp $i $FILE.vst/Contents/MacOS/$FILE
  20. rm -f $FILE.vst/Contents/MacOS/deleteme
  21. sed -i -e "s/X-PROJECTNAME-X/$FILE/" $FILE.vst/Contents/Info.plist
  22. SetFile -a B $FILE.vst
  23. done
  24. cd ../../