Fixed AI trade route evaluation to use correct speculated homecity instead of unit's
[freeciv.git] / bootstrap / fcruledit.in
blob36d734d813e8ee0b9ecdd4d43ac35147c8e092ae
1 #!/bin/sh
2 #/***********************************************************************
3 # Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
4 # script by Rene Schalburg
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 #***********************************************************************/
17 BUILDDIR=`dirname $0`
18 PROGNAME=freeciv-ruledit
19 EXENAME=${PROGNAME}@EXEEXT@
21 if test -x "$BUILDDIR/tools/ruledit/$EXENAME" ; then
22 EXE=$BUILDDIR/tools/ruledit/$EXENAME
23 elif test -x "$BUILDDIR/$EXENAME" ; then
24 EXE=$BUILDDIR/$EXENAME
25 else
26 echo "Unable to find rule editor executable: $EXENAME"
27 exit 1
30 if test "x$FREECIV_DATA_PATH" = "x" ; then
31 if test "x$FREECIV_PATH" = "x" ; then
32 FREECIV_DATA_PATH=".@HOST_PATH_SEPARATOR@data@HOST_PATH_SEPARATOR@~@HOST_DIR_SEPARATOR@.freeciv@HOST_DIR_SEPARATOR@@DATASUBDIR@"
33 else
34 echo "$0: FREECIV_PATH is deprecated"
35 FREECIV_DATA_PATH="${FREECIV_PATH}"
38 FREECIV_DATA_PATH="${FREECIV_DATA_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@@HOST_DIR_SEPARATOR@data@HOST_PATH_SEPARATOR@@abs_top_srcdir@@HOST_DIR_SEPARATOR@data"
39 export FREECIV_DATA_PATH
41 echo "Running $EXE"
42 exec "$EXE" ${1+"$@"}