From owner-freebsd-bugs Wed Jan 30 11:56:51 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id C505B37B416; Wed, 30 Jan 2002 11:56:41 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id GAA02248; Thu, 31 Jan 2002 06:56:34 +1100 Date: Thu, 31 Jan 2002 06:58:10 +1100 (EST) From: Bruce Evans X-X-Sender: To: Josef Karthauser Cc: , , , Subject: Re: conf/6346: Kernel version strings need to relate to the source not the build In-Reply-To: <20020130174141.C43943@genius.tao.org.uk> Message-ID: <20020131065411.Q55810-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 30 Jan 2002, Josef Karthauser wrote: > On Wed, Jan 30, 2002 at 05:40:41PM +0000, Josef Karthauser wrote: > > Technically we could use the date in the latest $FreeBSD$ tag of the > > source code, and then put this into vers.c at kernel build time. > > > > The following patch would do it. > > > > Joe > > > > Index: newvers.sh > > =================================================================== > > RCS file: /home/ncvs/src/sys/conf/newvers.sh,v > > retrieving revision 1.47 > > diff -u -r1.47 newvers.sh > > --- newvers.sh 2 Mar 2001 16:52:13 -0000 1.47 > > +++ newvers.sh 30 Jan 2002 17:39:42 -0000 > > @@ -86,11 +86,15 @@ > > > > touch version > > v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` > > + > > +l=`find /usr/src/sys/conf | xargs grep '\$FreeBSD:.*$' | sed \ > > + 's/.*\$FreeBSD://' | awk '{ print $3 "-" $4 }' | sort -n | tail -1` > > + > > Oops: s/\/conf//. (That was my test). That slows it down enough to be annoying. Also, the path shouldn't be absolute. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message