Subject: Re: osrelease.sh and param.h - take 2
To: Simon Burge <simonb@netbsd.org>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 05/05/1999 20:42:55
Simon Burge <simonb@netbsd.org> writes:
> I can't spend any more time on this today (real work - dang!), but
> here's something that works for all the cases I could think off of the
> top of my head.  There's no error checking, so 1.2B.3_ALPHA and other
> magically versions are possible.  I'll come back to it tomorrow if no
> one has beaten it to a pulp in the meantime...

Why don't you do / and % with powers of 10 to extract the right bits?
that seems ... easier than the field separation bits you used...


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.