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.

85 lines
2.0KB

  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/distrho/extra/choc
  29. rm -rf dpf/distrho/extra/sofd
  30. rm -rf dpf/dgl/pugl-extra
  31. rm -rf dpf/dgl/src/pugl-upstream/bindings
  32. rm -rf dpf/dgl/src/pugl-upstream/doc
  33. rm -rf dpf/dgl/src/pugl-upstream/examples
  34. rm -rf dpf/dgl/src/pugl-upstream/meson*
  35. rm -rf dpf/dgl/src/pugl-upstream/resources
  36. rm -rf dpf/dgl/src/pugl-upstream/scripts
  37. rm -rf dpf/dgl/src/pugl-upstream/subprojects
  38. rm -rf dpf/dgl/src/pugl-upstream/test
  39. rm -rf dpf/cmake
  40. rm -rf dpf/examples
  41. rm -rf dpf/lac
  42. rm -rf dpf/tests
  43. rm -f dpf/Makefile
  44. rm -f dpf/dgl/FileBrowserDialog.hpp
  45. rm -f dpf/dgl/Layout.hpp
  46. rm -f dpf/dgl/Vulkan.hpp
  47. rm -f dpf/dgl/WebView.hpp
  48. rm -f dpf/dgl/src/Layout.cpp
  49. rm -f dpf/dgl/src/Stub.cpp
  50. rm -f dpf/dgl/src/Vulkan.cpp
  51. rm -f dpf/dgl/src/WebViewWin32.cpp
  52. rm -f dpf/distrho/extra/Base64.hpp
  53. rm -f dpf/distrho/extra/ChildProcess.hpp
  54. rm -f dpf/distrho/extra/ExternalWindow.hpp
  55. rm -f dpf/distrho/extra/FileBrowserDialog*
  56. rm -f dpf/distrho/extra/Filesystem.hpp
  57. rm -f dpf/distrho/extra/Runner.hpp
  58. rm -f dpf/distrho/extra/Time.hpp
  59. rm -f dpf/distrho/extra/WebView*
  60. sed -i '/ $(BUILD_DIR)\/dgl\/Layout.cpp.o \\/d' dpf/dgl/Makefile
  61. for PLUGIN in ${PLUGINS[@]}; do
  62. for f in $(ls repos/${PLUGIN}/plugins/); do
  63. mv repos/${PLUGIN}/plugins/${f} plugins/${f}
  64. if [ -d plugins/${f} ]; then
  65. cp repos/${PLUGIN}/LICENSE plugins/${f}/LICENSE
  66. fi
  67. done
  68. done
  69. rm -rf repos
  70. rm plugins/common/LICENSE
  71. rm plugins/*/CMakeLists.txt