Browse Source

Add generate cabbage vst-extra script

tags/2018-04-16
falkTX 10 years ago
parent
commit
c08f87282b
2 changed files with 48 additions and 0 deletions
  1. +1
    -0
      Makefile
  2. +47
    -0
      scripts/generate-cabbage-vst_extra.sh

+ 1
- 0
Makefile View File

@@ -78,6 +78,7 @@ clean:
$(MAKE) clean -C ports
rm -rf bin/lv2/*.lv2/
rm -rf bin/lv2-extra/
rm -rf bin/vst-extra/

distclean: clean
$(MAKE) distclean -C libs/dgl


+ 47
- 0
scripts/generate-cabbage-vst_extra.sh View File

@@ -0,0 +1,47 @@
#!/bin/bash

set -e

if [ -d bin ]; then
cd bin
else
echo "Please run this script from the distrho root folder"
exit
fi

if [ ! -f cabbage/CabbagePluginSynth.so ]; then exit 0; fi
if [ ! -f cabbage/CabbagePluginMidi.so ]; then exit 0; fi
if [ ! -f cabbage/CabbagePluginEffect.so ]; then exit 0; fi

mkdir -p vst

if [ -f ../libs/lv2_ttl_generator.exe ]; then
EXT=dll
else
EXT=so
fi

mkdir -p vst-extra

FILES=`find ./cabbage-extra -name \*.csd`

for i in $FILES; do
basename=`echo $i | awk 'sub("./cabbage-extra/","")' | awk 'sub("/","\n")' | tail -n 1 | awk 'sub(".csd","")'`
basename=`echo "cabbage-$basename"`

if ( echo $i | grep "./cabbage-extra/Synths/" > /dev/null ); then
cp -v `pwd`/cabbage/CabbagePluginSynth.so vst/$basename.$EXT
elif ( echo $i | grep "./cabbage-extra/MIDI/" > /dev/null ); then
cp -v `pwd`/cabbage/CabbagePluginMidi.so vst/$basename.$EXT
else
cp -v `pwd`/cabbage/CabbagePluginEffect.so vst/$basename.$EXT
fi

cp -v $i vst-extra/$basename.csd

done

# Special files
# cp -v cabbage/Synths/bassline.snaps vst/

cd ..

Loading…
Cancel
Save