Date: Tue, 1 Jul 1997 19:03:53 +1000 From: David Dawes <dawes@rf900.physics.usyd.edu.au> To: hackers@freebsd.org Subject: Determining FreeBSD versions Message-ID: <19970701190353.50830@rf900.physics.usyd.edu.au>
next in thread | raw e-mail | index | archive | help
As of X11R6.3, imake parses the output of 'uname -r' to automatically set the OSMajorVersion, OSMinorVersion and OSTeenyVersion parameters. I recently updated a box with 2.1.7.1 to the latest on the RELENG_2_1_0 branch, and as a consequence, 'uname -r' now reports "2.1-STABLE" rather than "2.1.7.1-RELEASE". This results in imake setting OSTeenyVersion to 0 rather than 7, and this does make a difference with the current FreeBSD.cf. Is there a better way to reliably distinguish between versions, particularly the vintage of one of the "-STABLE" versions? The imake config allows these version parameters to be manually overriden, and that's what I'm doing for now. It would be good if the auto-detect mechanism could be made to work in this case though. I don't mind so much about -CURRENT, since that's known to be more of a moving target. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970701190353.50830>