Make duplicate script compatible with Python 3
[wdl/wdl-ol.git] / IPlugExamples / buildall-mac.command
blobbb451c238de61b2ee13158bc6b434c74c0dac3ac
1 #! /bin/sh
3 #bash shell script to build all the plugin projects in this directory for OSX.
4 #you may need to modify this if you don't have the RTAS SDK, or only want to build vst2 etc
5 #since the build will cancel if there are any errors
7 BASEDIR=$(dirname $0)
9 #here you can choose a target to build
10 TARGET="All"
11 #TARGET="APP"
12 #TARGET="VST2"
13 #TARGET="VST3"
14 #TARGET="AU"
15 #TARGET="RTAS"
16 #TARGET="AAX"
18 cd $BASEDIR
20 echo "building all example plugins..."
22 if [ -f build_errors.log ]
23 then
24 rm build_errors.log
27 for file in *
29 if [ -d "$file/$file.xcodeproj" ]
30 then
31 echo "building $file/$file.xcodeproj $TARGET target"
32 xcodebuild -project "$file/$file.xcodeproj" -target $TARGET -configuration Release 2> ./build_errors.log
34 if [ -s build_errors.log ]
35 then
36 echo "build failed due to following errors in $file"
37 echo ""
38 cat build_errors.log
39 exit 1
40 else
41 if [ -f build_errors.log ]
42 then
43 rm build_errors.log
48 done
51 echo "done"