From owner-freebsd-hackers Tue Jul 1 21:38:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA12896 for hackers-outgoing; Tue, 1 Jul 1997 21:38:51 -0700 (PDT) Received: from rf900.physics.usyd.edu.au (rf900.physics.usyd.edu.au [129.78.129.109]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA12891 for ; Tue, 1 Jul 1997 21:38:45 -0700 (PDT) Received: (from dawes@localhost) by rf900.physics.usyd.edu.au (8.8.5/8.8.2) id OAA15240; Wed, 2 Jul 1997 14:37:48 +1000 (EST) Message-ID: <19970702143748.33147@rf900.physics.usyd.edu.au> Date: Wed, 2 Jul 1997 14:37:48 +1000 From: David Dawes To: Warner Losh Cc: hackers@FreeBSD.ORG Subject: Re: Determining FreeBSD versions References: <19970701190353.50830@rf900.physics.usyd.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Warner Losh on Tue, Jul 01, 1997 at 09:33:17AM -0600 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Jul 01, 1997 at 09:33:17AM -0600, Warner Losh wrote: >In message <19970701190353.50830@rf900.physics.usyd.edu.au> David Dawes writes: >: branch, and as a consequence, 'uname -r' now reports "2.1-STABLE" rather > >Hmmm. Why not report 2.1.x-STABLE? Where x is incremented whenever a >release happens. Then people know that things are newer than 2.1.x or >2.2.x or whatever. Agreed. >I'm not completely sure that parsing osversion.h (or is that >osreldate.h) is the right answer here. I've ended up getting imake to look at the kern.osreldate sysctl value when it can't determine the dot revision from the uname -r output. At least then both methods are consistent in that they are getting the version information from the kernel. David