Annotation of imach/distributions/osx/imach, revision 1.2

1.1       brouard     1: #!/bin/bash
1.2     ! brouard     2: # Borrowed to gnuplot
        !             3: # record prior dir
        !             4: STARTDIR=`pwd`
1.1       brouard     5: 
1.2     ! brouard     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 "$@"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>