From ca6198dc98693face400d25364d21ae9bedf12df Mon Sep 17 00:00:00 2001 From: bringert Date: Mon, 12 Nov 2007 16:17:04 +0000 Subject: Use configure to produce a gfc script with the correct path to gf3. NOTE: you need to re-run autoconf after pulling this patch. --- src/gfc.in | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/gfc.in (limited to 'src/gfc.in') 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 "$@" -- cgit v1.2.3