Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8802) ser isn't created from ser.in
Home

[Freeciv-Dev] Re: (PR#8802) ser isn't created from ser.in

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8802) ser isn't created from ser.in
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Sat, 22 May 2004 02:38:06 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8802 >

On Sat, May 22, 2004 at 12:42:44AM -0700, Jason Short wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8802 >
> 
> Raimar Falke wrote:
> 
> > It should be "/home/hawk/FC/clean". Maybe $top_srcdir and
> > $top_builddir aren't set?
> 
> Clearly not.
> 
> If you don't mind limiting yourself to building from the srcdir this 
> patch should work.

The attached patch works here with the simple and the src!=build case.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Python 2.0 beta 1 is now available [...]. There is a long list of new 
  features since Python 1.6, released earlier today. We don't plan on 
  any new releases in the next 24 hours."
    -- Jeremy Hylton at Slashdot

Index: ser.in
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ser.in,v
retrieving revision 1.3
diff -u -u -r1.3 ser.in
--- ser.in      17 May 2004 16:51:16 -0000      1.3
+++ ser.in      22 May 2004 09:33:44 -0000
@@ -15,8 +15,12 @@
 #***********************************************************************/
 
 # Find absolute paths for srcdir and builddir.
-BUILDDIR="@abs_top_builddir@"
-SRCDIR="@abs_top_srcdir@"
+BUILDDIR=`dirname $0`
+
+# make absolute
+BUILDDIR=`cd $BUILDDIR;pwd`
+
+SRCDIR="$BUILDDIR/@top_srcdir@"
 
 [ -x $BUILDDIR/server/civserver ] && EXE=$BUILDDIR/server/civserver
 [ -x $BUILDDIR/civserver ] && EXE=$BUILDDIR/civserver

[Prev in Thread] Current Thread [Next in Thread]