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 EXENAME
=freeciv-server@EXEEXT@
20 if test "x$FREECIV_DATA_PATH" = "x" ; then
21 if test "x$FREECIV_PATH" = "x" ; then
22 FREECIV_DATA_PATH
=".@HOST_PATH_SEPARATOR@data@HOST_PATH_SEPARATOR@~/.freeciv/@DATASUBDIR@"
24 FREECIV_DATA_PATH
="${FREECIV_PATH}"
27 FREECIV_DATA_PATH
="${FREECIV_DATA_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@/data@HOST_PATH_SEPARATOR@@abs_top_srcdir@/data"
28 export FREECIV_DATA_PATH
30 if test "x$FREECIV_PATH" = "x" ; then
31 FREECIV_PATH
=".@HOST_PATH_SEPARATOR@data@HOST_PATH_SEPARATOR@~/.freeciv@HOST_PATH_SEPARATOR@~/.freeciv/@DATASUBDIR@"
33 FREECIV_PATH
="${FREECIV_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@"
36 if test "x$FREECIV_SAVE_PATH" = "x" ; then
37 FREECIV_SAVE_PATH
=".@HOST_PATH_SEPARATOR@~/.freeciv/saves"
39 FREECIV_SAVE_PATH
="${FREECIV_SAVE_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@@HOST_PATH_SEPARATOR@@abs_top_srcdir@"
40 export FREECIV_SAVE_PATH
42 if test "x$FREECIV_SCENARIO_PATH" = "x" ; then
43 FREECIV_SCENARIO_PATH
=".@HOST_PATH_SEPARATOR@data/scenarios@HOST_PATH_SEPARATOR@~/.freeciv/@DATASUBDIR@/scenarios@HOST_PATH_SEPARATOR@~/.freeciv/scenarios"
45 FREECIV_SCENARIO_PATH
="${FREECIV_SCENARIO_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@/data/scenarios@HOST_PATH_SEPARATOR@@abs_top_srcdir@/data/scenarios"
46 export FREECIV_SCENARIO_PATH
48 [ -x $BUILDDIR/server
/$EXENAME ] && EXE
=$BUILDDIR/server
/$EXENAME
49 [ -x $BUILDDIR/$EXENAME ] && EXE
=$BUILDDIR/$EXENAME
51 if [ "$EXE" = "" ]; then
52 echo $0: Unable to
find $EXENAME.