-
Notifications
You must be signed in to change notification settings - Fork 3
/
run.sh
executable file
·52 lines (43 loc) · 1.27 KB
/
run.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
TARGET=$0
cd $(dirname "$TARGET")
TARGET=$(basename "$TARGET")
# Iterate down a (possible) chain of symlinks
while [ -L "$TARGET" ]
do
TARGET=$(readlink "$TARGET")
cd $(dirname "$TARGET")
TARGET=$(basename "$TARGET")
done
# Compute the canonicalized name by finding the physical path
# for the directory we're in and appending the target file.
DIR=`pwd -P`
SCRIPTPATH="$DIR"
# Link the QT PlugIns
export QT_PLUGIN_PATH="./QT_PlugIns"
# Generate scsynth settings
# Relative paths are not allowed when running scsynth
echo "
+ OSXPlatform {
startupFiles {
^[];
}
startup {
helpDir = this.systemAppSupportDir++\"/Help\";
// Server setup
Server.program = \"'$SCRIPTPATH/Resources/scsynth' -U '$SCRIPTPATH/Resources/plugins' -D 0\";
// Score setup
Score.program = Server.program;
// load user startup file
// this.loadStartupFiles;
}
}" > SystemOverwrites/plusOSX.sc;
# Generate the langconf file
echo "includePaths:
- SystemOverwrites
- SCClassLibrary
excludePaths:
- $HOME/Library/Application Support/SuperCollider/Extensions
- /Library/Application Support/SuperCollider/Extensions
- /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary
postInlineWarnings: false" > langconf.yaml;
./Resources/sclang -l langconf.yaml init.scd