Fix ardour2 -> ardour3 issues.
[ardour.git] / tools / osx_packaging / startup_script
1 #!/bin/sh
2
3 #
4 # NOTE: Leopard appears not to set PATH for this script, so be absolutely certain
5 # never to use any other program without fully specifying the path.
6 #
7 # this is used to detect a missing JACK install which
8 # is the most common thing causing startup crashes.
9
10
11 if test ! -x /usr/local/bin/jackd -a ! -x /usr/bin/jackd ; then
12    /usr/bin/osascript -e 'tell application "Finder"
13 display dialog "You do not have JACK installed. Ardour will not run without it. See http://jackaudio.org/ for info" buttons["OK"]
14 end tell'
15    exit 1
16 fi
17
18 #
19 # all clear, lets go
20 # this quoting is all needed to handle installation
21 # in folders likes /home/user/Frank's Wild Years
22
23 CWD="`/usr/bin/dirname \"$0\"`"
24 exec "$CWD/Ardour3.bin" "$*"