diff options
| author | bringert <bringert@cs.chalmers.se> | 2007-11-12 16:17:04 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2007-11-12 16:17:04 +0000 |
| commit | ca6198dc98693face400d25364d21ae9bedf12df (patch) | |
| tree | 1a54837b134d5ae82ec65934fcfa4f74c1994e3c /src/gfc.in | |
| parent | 4500ce63167e6dce38b103090ff4e0849c9dbe45 (diff) | |
Use configure to produce a gfc script with the correct path to gf3. NOTE: you need to re-run autoconf after pulling this patch.
Diffstat (limited to 'src/gfc.in')
| -rw-r--r-- | src/gfc.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gfc.in b/src/gfc.in new file mode 100644 index 000000000..05addb2cb --- /dev/null +++ b/src/gfc.in @@ -0,0 +1,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 "$@" |
