At 11 Jan 2001 16:12:02 -0500,
Jeff Trawick wrote:
> If there is 3.4.x, then perhaps it should be 340 for 3.4, 341 for
> 3.4.1, etc.
> 
> The version could be set to 
> 
> uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/' | sed -e 
> 's/\(.\)\.\(.\)\-.*/\1\20/'
> 
> yielding 341 for 3.4.1-RELEASE and 340 for 3.4-RELEASE.
> 
> Why limit the variable to FreeBSD?  We'll have (or already have)
> similar checks on other platforms.  Make the variable name more
> generic.

If version specific hack for FreeBSD is required, is it useful to use
"sysctl kern.osreldate"?

% sysctl kern.osreldate
kern.osreldate: 500015


# See http://www.FreeBSD.org/porters-handbook/porting-versions.html
# for detail of values


-- 
Jun Kuriyama <[EMAIL PROTECTED]> // IMG SRC, Inc.
             <[EMAIL PROTECTED]> // FreeBSD Project

Reply via email to