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.

60 lines
1.2KB

  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 --recursive -b develop https://github.com/DISTRHO/DPF.git
  12. for PLUGIN in ${PLUGINS[@]}; do
  13. git clone --depth 1 https://github.com/DISTRHO/${PLUGIN}.git
  14. done
  15. # special case for ProM
  16. cd ProM
  17. git submodule init
  18. git submodule update
  19. cd ..
  20. cd ..
  21. rm -rf dpf
  22. rm -rf modguis
  23. rm -rf plugins
  24. mkdir plugins
  25. mv repos/DPF dpf
  26. rm -rf dpf/.git*
  27. rm -rf dpf/.travis*
  28. rm -rf dpf/dgl/src/pugl-upstream/bindings
  29. rm -rf dpf/dgl/src/pugl-upstream/doc
  30. rm -rf dpf/dgl/src/pugl-upstream/examples
  31. rm -rf dpf/dgl/src/pugl-upstream/meson*
  32. rm -rf dpf/dgl/src/pugl-upstream/resources
  33. rm -rf dpf/dgl/src/pugl-upstream/scripts
  34. rm -rf dpf/dgl/src/pugl-upstream/test
  35. rm -rf dpf/examples
  36. rm -rf dpf/tests
  37. rm -f dpf/Makefile
  38. for PLUGIN in ${PLUGINS[@]}; do
  39. for f in $(ls repos/${PLUGIN}/plugins/); do
  40. mv repos/${PLUGIN}/plugins/${f} plugins/${f}
  41. if [ -d plugins/${f} ]; then
  42. cp repos/${PLUGIN}/LICENSE plugins/${f}/LICENSE
  43. fi
  44. done
  45. done
  46. rm -rf repos
  47. rm plugins/common/LICENSE