Update install docs
[carla.git] / data / update-juce
bloba03238dc199b3cc6666ecc7978288d05b08f59a0
1 #!/bin/bash
3 set -e
5 cd $(dirname ${0})
6 cd ..
8 CARLA_DIR=$(pwd)
9 DISTRHO_PORTS_DIR=/tmp/distrho-ports-carla
11 rm -rf ${DISTRHO_PORTS_DIR}
12 git clone git@github.com:DISTRHO/DISTRHO-Ports.git ${DISTRHO_PORTS_DIR} --depth=1
14 CARLA_MODULES_DIR=${CARLA_DIR}/source/modules
15 JUCE_MODULES_DIR=${DISTRHO_PORTS_DIR}/libs/juce7/source/modules
17 MODULES=("juce_audio_basics juce_audio_devices juce_audio_formats juce_audio_processors juce_core juce_data_structures juce_dsp juce_events juce_graphics juce_gui_basics juce_gui_extra")
19 for M in ${MODULES}; do
20 echo ${CARLA_MODULES_DIR}/${M};
21 rm -f ${CARLA_MODULES_DIR}/${M}/juce_*
22 rm -rf ${CARLA_MODULES_DIR}/${M}/{a..z}*
23 cp -r -v ${JUCE_MODULES_DIR}/${M}/* ${CARLA_MODULES_DIR}/${M}/
24 rm ${CARLA_MODULES_DIR}/${M}/juce_*.mm
25 done
27 find ${CARLA_MODULES_DIR} -name juce_module_info -delete
29 rm -rf ${CARLA_MODULES_DIR}/../includes/vst3sdk
30 mv ${CARLA_MODULES_DIR}/juce_audio_processors/format_types/VST3_SDK ${CARLA_MODULES_DIR}/../includes/vst3sdk
31 rm -rf ${CARLA_MODULES_DIR}/../includes/vst3sdk/*.pdf
33 # rm -rf ${DISTRHO_PORTS_DIR}