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)
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 #***********************************************************************/
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
26 echo "Unable to find rule editor executable: $EXENAME"
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@"
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