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.

94 lines
2.3KB

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