Date: Tue, 4 Nov 2003 14:42:17 +1100 From: "Tim Hoban" <tim@e-easy.com.au> To: "'Frank Laszlo'" <laszlof@vonostingroup.com> Cc: ports@freebsd.org Subject: RE: Freebsd-games patches... Message-ID: <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au> In-Reply-To: <1067916211.2673.6.camel@star.vonostingroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Frank Laszlo [mailto:laszlof@vonostingroup.com]=20 > Sent: Tuesday, 4 November 2003 14:24 > To: Tim Hoban > Cc: ports@freebsd.org > Subject: Re: Freebsd-games patches... >=20 >=20 > umm, why is the absolute path to that file in the src anyways? > it should be in an include file as a variable, and changed by the > configure script. >=20 > -Frank Laszlo >=20 Dunno. Here's a fix with a variable. Index: hack.unix.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/ports/games/freebsd-games/work/freebsd-games-5.0/cvs/hack/hack.unix.= c,v retrieving revision 1.10 diff -u -r1.10 hack.unix.c --- hack.unix.c 23 May 2002 00:38:07 -0000 1.10 +++ hack.unix.c 4 Nov 2003 03:51:13 -0000 @@ -86,7 +86,7 @@ /* old version - for people short of space */ char *np; =20 - name =3D "/usr/games/hide/hack"; + name =3D _PATH_HACKBIN; if(stat(name, &hbuf)) error("Cannot get status of %s.", (np =3D rindex(name, '/')) ? np+1 : name); Index: pathnames.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/ports/games/freebsd-games/work/freebsd-games-5.0/cvs/hack/pathnames.= h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 pathnames.h --- pathnames.h 4 Sep 1994 04:02:55 -0000 1.1.1.1 +++ pathnames.h 4 Nov 2003 03:53:07 -0000 @@ -36,4 +36,5 @@ #define _PATH_MAIL "/usr/bin/mail" #define _PATH_QUEST "/var/games/questdir" #define _PATH_HACK "/var/games/hackdir" +#define _PATH_HACKBIN "/usr/local/bin/hack" =20 E-easy 15 Wellington St. Launceston TAS 7250 Tel: +61 3 6334 6664 Fax: +61 3 6331 7032 =20 Web: http://www.e-easy.com.au
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00f601c3a285$a5228980$030aa8c0>