Use configure to produce a gfc script with the correct path to gf3. NOTE: you need to re-run autoconf after pulling this patch.

This commit is contained in:
bringert
2007-11-12 16:17:04 +00:00
parent 4500ce6316
commit ca6198dc98
4 changed files with 28 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/sh
GFBIN=/usr/local/bin/gf3
exec $GFBIN --batch ${1+"$@"}

View File

@@ -194,6 +194,8 @@ tools/$(GF_DOC_EXE): tools/GFDoc.hs
$(GHMAKE) $(GHCOPTFLAGS) -o $@ $^
gfc: gf3
cp -f gfc ../bin/
chmod a+x ../bin/gfc
gfi: gf3

View File

@@ -6,7 +6,7 @@ AC_PREREQ(2.53)
AC_REVISION($Revision: 1.26 $)
AC_CONFIG_FILES([config.mk jgf gfeditor])
AC_CONFIG_FILES([config.mk gfc jgf gfeditor])
AC_CANONICAL_HOST

25
src/gfc.in Normal file
View File

@@ -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 "$@"