<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40205 >

 Add suffix (.exe) to program names to launch.


 - ML

diff -Nurd -X.diff_ignore freeciv/bootstrap/civ.in freeciv/bootstrap/civ.in
--- freeciv/bootstrap/civ.in	2008-03-09 01:26:53.000000000 +0200
+++ freeciv/bootstrap/civ.in	2008-04-15 22:44:27.000000000 +0300
@@ -15,17 +15,18 @@
 #***********************************************************************/
 
 BUILDDIR=`dirname $0`
[EMAIL PROTECTED]@
 
 if [ "x$FREECIV_PATH" = "x" ] ; then
   FREECIV_PATH=".:data:~/.freeciv"
 fi
 export FREECIV_PATH="$FREECIV_PATH:@abs_top_builddir@/data:@abs_top_srcdir@/data"
 
-[ -x $BUILDDIR/client/civclient ] && EXE=$BUILDDIR/client/civclient
-[ -x $BUILDDIR/civclient ] && EXE=$BUILDDIR/civclient
+[ -x $BUILDDIR/client/civclient ] && EXE=$BUILDDIR/client/$EXENAME
+[ -x $BUILDDIR/civclient ] && EXE=$BUILDDIR/$EXENAME
 
 if [ "$EXE" = "" ]; then
-  echo $0: Unable to find civclient.
+  echo $0: Unable to find $EXENAME.
   exit 1
 fi
 
diff -Nurd -X.diff_ignore freeciv/bootstrap/ser.in freeciv/bootstrap/ser.in
--- freeciv/bootstrap/ser.in	2008-03-09 01:26:53.000000000 +0200
+++ freeciv/bootstrap/ser.in	2008-04-15 22:47:32.000000000 +0300
@@ -15,17 +15,18 @@
 #***********************************************************************/
 
 BUILDDIR=`dirname $0`
[EMAIL PROTECTED]@
 
 if [ "x$FREECIV_PATH" = "x" ] ; then
   FREECIV_PATH=".:data:~/.freeciv"
 fi
 export FREECIV_PATH="$FREECIV_PATH:@abs_top_builddir@/data:@abs_top_srcdir@/data"
 
-[ -x $BUILDDIR/server/civserver ] && EXE=$BUILDDIR/server/civserver
-[ -x $BUILDDIR/civserver ] && EXE=$BUILDDIR/civserver
+[ -x $BUILDDIR/server/civserver ] && EXE=$BUILDDIR/server/$EXENAME
+[ -x $BUILDDIR/civserver ] && EXE=$BUILDDIR/$EXENAME
 
 if [ "$EXE" = "" ]; then
-  echo $0: Unable to find civserver.
+  echo $0: Unable to find $EXENAME.
   exit 1
 fi
 
diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac
--- freeciv/configure.ac	2008-03-16 23:45:48.000000000 +0200
+++ freeciv/configure.ac	2008-04-15 22:41:06.000000000 +0300
@@ -698,7 +698,7 @@
 AC_SUBST([TOLUA_LIBS])
 AC_SUBST([TOLUA_AS_DEPENDENCY])
 
-TOLUA="\$(top_builddir)/dependencies/tolua/tolua"
+TOLUA="\$(top_builddir)/dependencies/tolua/tolua$EXEEXT"
 AC_SUBST([TOLUA])
 
 dnl Freeciv uses a non-standard macro, Q_(), to handle cases of qualified
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to