various fixes to MidiRegionView selection handling, key handling, drawing of ghost...
[ardour2.git] / tools / osx_packaging / init
blob65c819550ea5baea8f4d755c2d3c241119cad762
1 #!/bin/sh
3 # Author: Aaron Voisine <aaron@voisine.org>
5 CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
7 ps -wx -ocommand | grep -e '[X]11' > dev/null
8 if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
9 echo "rm -f ~/.xinitrc" > ~/.xinitrc
10 sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
13 open -a X11 || open -a XDarwin
15 export "FONTCONFIG_PATH=$CWD/etc/fonts"
16 exec "$CWD/bin/cache-fonts"