-
Notifications
You must be signed in to change notification settings - Fork 3
/
make_all.sh
executable file
·54 lines (47 loc) · 1.43 KB
/
make_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
arg=$1
if [[ "$OSTYPE" == "linux-gnu" ]]; then
if [ $# -eq 1 ]; then
if [ ${arg} == "clean" ]; then
for dir in ./Plugex*/
do
cd ${dir}/Builds/LinuxMakefile/
make clean CONFIG=Release
cd ../../..
done
exit 0
fi
fi
for dir in ./Plugex*/
do
dir=${dir%*/} # remove the trailing "/"
echo "=== Compiling" ${dir##*/} "===" # print everything after the final "/"
cd ${dir}/Builds/LinuxMakefile/
make CONFIG=Release
cp build/*.so ~/.vst/
cp build/*.so ../../../debian_x64_binaries/VST/
cd ../../..
done
elif [[ "$OSTYPE" == "darwin"* ]]; then
if [ $# -eq 1 ]; then
if [ ${arg} == "clean" ]; then
for dir in ./Plugex*/
do
cd ${dir}/Builds/MacOSX/
xcodebuild -quiet -configuration Release clean
cd ../../..
done
exit 0
fi
fi
for dir in ./Plugex*/
do
dir=${dir%*/} # remove the trailing "/"
echo "=== Compiling" ${dir##*/} "===" # print everything after the final "/"
cd ${dir}/Builds/MacOSX/
xcodebuild -quiet -configuration Release build
cp -r build/Release/*.component ../../../MacOS_x64_binaries/Components/
cp -r build/Release/*.vst ../../../MacOS_x64_binaries/VST/
cp -r build/Release/*.vst3 ../../../MacOS_x64_binaries/VST3/
cd ../../..
done
fi