From f9a4c4d36d87e07742cf388131e6cd0409c0e597 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 22 Apr 2020 06:07:03 +0100 Subject: [PATCH] Add personal script to copy juce stuff Signed-off-by: falkTX --- data/copy-juce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 data/copy-juce diff --git a/data/copy-juce b/data/copy-juce new file mode 100755 index 000000000..7551c28c5 --- /dev/null +++ b/data/copy-juce @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +JUCE_MODULES_DIR="/Shared/Personal/FOSS/GIT/DISTRHO/juce/modules" +CARLA_MODULES_DIR="/Shared/Personal/FOSS/GIT/falkTX/Carla/source/modules" + +MODULES=("juce_audio_basics juce_audio_devices juce_audio_processors juce_core juce_data_structures juce_events juce_graphics juce_gui_basics juce_gui_extra") + +for M in $MODULES; do + echo $CARLA_MODULES_DIR/$M; + rm -f $CARLA_MODULES_DIR/$M/juce_* + rm -rf $CARLA_MODULES_DIR/$M/{a..z}* + cp -r -v $JUCE_MODULES_DIR/$M/* $CARLA_MODULES_DIR/$M/ + rm $CARLA_MODULES_DIR/$M/juce_*.mm +done + +find $CARLA_MODULES_DIR -name juce_module_info -delete +rm -rf $CARLA_MODULES_DIR/juce_*/native/java/ +rm -rf $CARLA_MODULES_DIR/juce_*/native/javaopt/ +rm -rf $CARLA_MODULES_DIR/juce_*/native/oboe/ + +sed -i "s|Juce VST Host|Carla Plugin Host|" $CARLA_MODULES_DIR/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp + +rm -rf $CARLA_MODULES_DIR/../includes/vst3sdk +mv $CARLA_MODULES_DIR/juce_audio_processors/format_types/VST3_SDK $CARLA_MODULES_DIR/../includes/vst3sdk +rm -rf $CARLA_MODULES_DIR/../includes/vst3sdk/*.pdf