supernova: c++11 compile fix
[supercollider.git] / platform / mac / SuperColliderAU / scaudk / makecustomplugin
blob9e76f8c04e9cb714167f27b80b142639986838bb
1 #!/bin/bash
3 if [ $# -ne "3" ]
4 then
5 echo "Usage: `basename $0` plugin_name component_type component_subtype
6 plugin_name is the name of your synthdef file minus the extension, ie plugin_name.scsyndef is your synth definition file.
7 component_subtype must be a four chars code, like PLUG. It sould be unique in your system within all SCAU generated plugins"
8 exit
9 fi
10 echo $1
11 sed -e "s/@@NAME@@/$1/" -e "s/@@COMP_TYPE@@/$2/" -e "s/@@COMP_SUBTYPE@@/$3/" SuperColliderAU.r>tmp.r
12 cp -R SuperColliderAU.component/ $1.component/
13 mkdir -p $1.component/Contents/Resources/synthdefs
14 cp pluginSpec.plist $1.component/Contents/Resources/
15 cp serverConfig.plist $1.component/Contents/Resources/
16 cp $1.scsyndef $1.component/Contents/Resources/synthdefs
17 /Developer/Tools/Rez -d i386_YES -d ppc_YES -o $1.component/Contents/Resources/SuperColliderAU.rsrc -useDF \
18 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers \
19 -I /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase tmp.r
21 rm tmp.r
22 rm $1.scsyndef
23 rm pluginSpec.plist
24 rm serverConfig.plist