File:  [Local Repository] / imach / distributions / osx / imach
Revision 1.2: download - view: text, annotated - select for diffs
Sat Apr 21 21:13:27 2018 UTC (6 years, 2 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
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 "$@"

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