Audio plugin host https://kx.studio/carla
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.

56 lines
2.3KB

  1. #!/bin/sh
  2. set -e
  3. ORIG_ZYN_DIR="/home/falktx/FOSS/GIT-mine/falkTX/zynaddsubfx"
  4. CARLA_ZYN_DIR="/home/falktx/FOSS/GIT-mine/falkTX/Carla/source/native-plugins/zynaddsubfx"
  5. rm -f $CARLA_ZYN_DIR/*.cpp
  6. rm -f $CARLA_ZYN_DIR/*.h
  7. rm -f $CARLA_ZYN_DIR/Containers/*
  8. rm -f $CARLA_ZYN_DIR/DSP/*
  9. rm -f $CARLA_ZYN_DIR/Effects/*
  10. rm -f $CARLA_ZYN_DIR/Misc/*
  11. rm -f $CARLA_ZYN_DIR/Nio/*
  12. rm -f $CARLA_ZYN_DIR/Params/*
  13. rm -f $CARLA_ZYN_DIR/Synth/*
  14. rm -f $CARLA_ZYN_DIR/Tests/*
  15. rm -fr $CARLA_ZYN_DIR/UI/*
  16. rm -fr $CARLA_ZYN_DIR/rtosc/*
  17. rm -f $CARLA_ZYN_DIR/tlsf/*
  18. cp $ORIG_ZYN_DIR/src/*.cpp $CARLA_ZYN_DIR/
  19. cp $ORIG_ZYN_DIR/src/*.h $CARLA_ZYN_DIR/
  20. cp $ORIG_ZYN_DIR/src/Containers/* $CARLA_ZYN_DIR/Containers/
  21. cp $ORIG_ZYN_DIR/src/DSP/* $CARLA_ZYN_DIR/DSP/
  22. cp $ORIG_ZYN_DIR/src/Effects/* $CARLA_ZYN_DIR/Effects/
  23. cp $ORIG_ZYN_DIR/src/Misc/* $CARLA_ZYN_DIR/Misc/
  24. cp $ORIG_ZYN_DIR/src/Nio/* $CARLA_ZYN_DIR/Nio/
  25. cp $ORIG_ZYN_DIR/src/Params/* $CARLA_ZYN_DIR/Params/
  26. cp $ORIG_ZYN_DIR/src/Synth/* $CARLA_ZYN_DIR/Synth/
  27. cp -r $ORIG_ZYN_DIR/src/UI/* $CARLA_ZYN_DIR/UI/
  28. cp $ORIG_ZYN_DIR/rtosc/include/rtosc/* $CARLA_ZYN_DIR/rtosc/
  29. cp -r $ORIG_ZYN_DIR/rtosc/src/* $CARLA_ZYN_DIR/rtosc/
  30. cp $ORIG_ZYN_DIR/tlsf/*.h $CARLA_ZYN_DIR/tlsf/
  31. cp $ORIG_ZYN_DIR/tlsf/*.c $CARLA_ZYN_DIR/tlsf/
  32. rm $CARLA_ZYN_DIR/*/CMakeLists.txt
  33. rm $CARLA_ZYN_DIR/UI/zynaddsubfx.xpm
  34. cp $ORIG_ZYN_DIR/src/zyn-version.h.in $CARLA_ZYN_DIR/zyn-version.h
  35. sed -i 's|${VERSION_MAJOR}|3|' $CARLA_ZYN_DIR/zyn-version.h
  36. sed -i 's|${VERSION_MINOR}|0|' $CARLA_ZYN_DIR/zyn-version.h
  37. sed -i 's|${VERSION_REVISION}|2|' $CARLA_ZYN_DIR/zyn-version.h
  38. find $CARLA_ZYN_DIR -name "*.h" -type f | xargs sed -i "s|namespace zyn|namespace zyncarla|g"
  39. find $CARLA_ZYN_DIR -name "*.fl" -type f | xargs sed -i "s|namespace zyn|namespace zyncarla|g"
  40. find $CARLA_ZYN_DIR -name "*.cpp" -type f | xargs sed -i "s|namespace zyn|namespace zyncarla|g"
  41. sed -i "s|zyn::|zyncarla::|g" $CARLA_ZYN_DIR/*/*.h
  42. sed -i "s|zyn::|zyncarla::|g" $CARLA_ZYN_DIR/*/*.cpp
  43. sed -i "s|emplace_uint32(|emplace_uint32_cpp(|" $CARLA_ZYN_DIR/rtosc/cpp/subtree-serialize.cpp
  44. sed -i "s|../../include/rtosc/|../|" $CARLA_ZYN_DIR/rtosc/cpp/*.cpp
  45. sed -i "s|../../tlsf/tlsf.h|tlsf/tlsf.h|" $CARLA_ZYN_DIR/Misc/Allocator.cpp
  46. sed -i "s|../src/globals.h|globals.h|" $CARLA_ZYN_DIR/Misc/Config.cpp
  47. sed -i "s|identity|identity_ts|" $CARLA_ZYN_DIR/UI/Fl_Osc_TSlider.cpp