Collection of DPF-based plugins for packaging
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.

49 lines
990B

  1. #!/bin/bash
  2. set -e
  3. PLUGINS=("glBars" "Kars" "Mini-Series" "MVerb" "Nekobi" "ProM" "ndc-Plugs" "DPF-Max-Gen")
  4. if [ ! -f Makefile ]; then
  5. echo "Makefile not found, please run this script from DPF-Plugins root source dir"
  6. exit
  7. fi
  8. rm -rf repos
  9. mkdir repos
  10. cd repos
  11. git clone --depth 1 git://github.com/DISTRHO/DPF
  12. for PLUGIN in ${PLUGINS[@]}; do
  13. git clone --depth 1 git://github.com/DISTRHO/$PLUGIN
  14. done
  15. cd ..
  16. rm -rf dpf
  17. rm -rf modguis
  18. rm -rf plugins
  19. mkdir modguis
  20. mkdir plugins
  21. mv repos/DPF dpf
  22. rm -rf dpf/.git*
  23. for PLUGIN in ${PLUGINS[@]}; do
  24. if [ -d repos/$PLUGIN/modguis ]; then
  25. mv repos/$PLUGIN/modguis/* modguis/
  26. fi
  27. for f in $(ls repos/$PLUGIN/plugins/); do
  28. mv repos/$PLUGIN/plugins/$f plugins/$f
  29. if [ -d plugins/$f ]; then
  30. cp repos/$PLUGIN/LICENSE plugins/$f/LICENSE
  31. fi
  32. done
  33. mv plugins/Makefile.mk plugins/Makefile.$PLUGIN.mk
  34. sed -i -e "s/Makefile.mk/Makefile.$PLUGIN.mk/" plugins/*/Makefile
  35. done
  36. rm -rf repos
  37. rm plugins/common/LICENSE