|
|
Summary: Borrowed from gnuplot
1: #!/bin/bash
2: # Borrowed to gnuplot
3: # record prior dir
4: STARTDIR=`pwd`
5:
6: # get the full path to the bundle's MacOS directory
7: # and define BINDIR
8: CWD=$(cd "$(dirname "$0")"; pwd)
9: TOP="`dirname \"$CWD\"`/Resources"
10: BINDIR="${TOP}/bin"
11:
12: # Strip out the argument added by the OS, if any
13: if /bin/expr "x$1" : '^x-psn_' > /dev/null; then
14: shift 1
15: fi
16:
17: cd "$STARTDIR"
18:
19: open -a Terminal "$BINDIR"/imach "$@"