use proper quoting to avoid possible startup problems on OS X if installed in folders...
[ardour.git] / tools / osx_packaging / startup_script
1 #!/bin/sh
2
3 #
4 # this is used to detect a missing JACK install which
5 # is the most common thing causing startup crashes.
6
7
8 if test ! -x /usr/local/bin/jackd -a ! -x /usr/bin/jackd ; then
9    osascript -e 'tell application "Terminal"
10 display dialog "You do not have JACK installed. Ardour will not run without it. See http://jackaudio.org/ for info" buttons["OK"]
11 end tell'
12    exit 1
13 fi
14
15 #
16 # all clear, lets go
17 # this quoting is all needed to handle installation
18 # in folders likes /home/user/Frank's Wild Years
19
20 CWD="`/usr/bin/dirname \"$0\"`"
21 exec "$CWD/Ardour2.bin" "$*"
22
23