summaryrefslogtreecommitdiff
path: root/download/gfc
blob: 7c1d30515fa5b3bcf469ea4ce00cd36f6fe09259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

prefix="/usr/local"

case "i386-apple-darwin9.3.0" in
      *-cygwin)
          prefix=`cygpath -w "$prefix"`;;
esac

exec_prefix="${prefix}"
GF_BIN_DIR="${exec_prefix}/bin"
GF_DATA_DIR="${prefix}/share/GF-3.0-beta"

GFBIN="$GF_BIN_DIR/gf"

if [ ! -x "${GFBIN}" ]; then
   GFBIN=`which gf`
fi

if [ ! -x "${GFBIN}" ]; then
    echo "gf not found."
    exit 1
fi

exec $GFBIN --batch "$@"