On Tuesday, Feb 25, 2003, at 15:48 US/Pacific, Chris Devers wrote: [..]
That looks painful. Why not just use one of these?

    % sw_vers
    ProductName:    Mac OS X
    ProductVersion: 10.2.4
    BuildVersion:   6I32

this application appears to be only distributed with Mac OS X and not with other versions of BSD-isms.

[..]
% uname -a
Darwin barney 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003;
root:xnu/xnu-344.26.obj~1/RELEASE_PPC Power Macintosh powerpc
[..]

I presume that the version of the Darwin Kernel is
tied to the ProductVersion? In a way similar to
the solaris style that SunOs 5.6.1 was Solaris 2.6.1 ???

uname -r would of course return the '6.4' value
and if there is an offset algorithm....

ciao
drieux

---



Reply via email to