summaryrefslogtreecommitdiff
path: root/src/gfc.in
blob: 05addb2cbdf2761663e1eddf4be0968735f20084 (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="@prefix@"

case "@host@" in
      *-cygwin)
          prefix=`cygpath -w "$prefix"`;;
esac

exec_prefix="@exec_prefix@"
GF_BIN_DIR="@bindir@"
GF_DATA_DIR="@datadir@/GF-@PACKAGE_VERSION@"

GFBIN="$GF_BIN_DIR/gf3"

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

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

exec $GFBIN --batch "$@"