Date: Wed, 30 Jan 2002 17:41:41 +0000 From: Josef Karthauser <joe@tao.org.uk> To: Josef Karthauser <joe@tao.org.uk> Cc: sheldonh@FreeBSD.org, rkw@Dataplex.Net, freebsd-bugs@FreeBSD.org, joe@FreeBSD.org Subject: Re: conf/6346: Kernel version strings need to relate to the source not the build Message-ID: <20020130174141.C43943@genius.tao.org.uk> In-Reply-To: <20020130174041.B43943@genius.tao.org.uk>; from joe@tao.org.uk on Wed, Jan 30, 2002 at 05:40:41PM %2B0000 References: <200201301602.g0UG2Fi73454@freefall.freebsd.org> <20020130174041.B43943@genius.tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 30, 2002 at 05:40:41PM +0000, Josef Karthauser wrote: > On Wed, Jan 30, 2002 at 08:02:15AM -0800, sheldonh@FreeBSD.org wrote: > > Synopsis: Kernel version strings need to relate to the source not the b= uild > >=20 > > State-Changed-From-To: feedback->open > > State-Changed-By: sheldonh > > State-Changed-When: Wed Jan 30 08:01:36 PST 2002 > > State-Changed-Why:=20 > > Let's see if Joe bites. :-) > >=20 > >=20 > > Responsible-Changed-From-To: freebsd-bugs->joe > > Responsible-Changed-By: sheldonh > > Responsible-Changed-When: Wed Jan 30 08:01:36 PST 2002 > > Responsible-Changed-Why:=20 > > Joe, could you work something into the CVS scripts to manage this file? >=20 > Bite bite. >=20 > 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. >=20 > The following patch would do it. >=20 > Joe >=20 > Index: newvers.sh > =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: /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 @@ > =20 > touch version > v=3D`cat version` u=3D${USER-root} d=3D`pwd` h=3D`hostname` t=3D`date` > + > +l=3D`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). Joe --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjxYMFUACgkQXVIcjOaxUBbq8gCfeHZAXD/gz1twFGvy/hXzIQUX fWAAoIpkQD7xkyw/wnf0teMx7WoPpOg2 =SZnC -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020130174141.C43943>