Subject: Re: osrelease.sh and param.h
To: Chris G. Demetriou <cgd@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 05/06/1999 12:13:26
Chris G. Demetriou wrote:
> Simon Burge <simonb@netbsd.org> writes:
> > > (2) i think you do need to cope with the _ALPHA and _BETA issue.
> >
> > I had a think about this and couldn't come up with anything. Parsing
> > __NetBSD_Version__ and then looking for ALPHA, BETA, whatever crossed my
> > mind, but I thought it'd be better to do it either one way or the other.
> > Unfortunately I didn't come up with a representation that fits the
> > current setup.
> >
> > Hmm, maybe we can use those two `0's at the end - how does:
> >
> > MMmmrrppRl
> >
> > sound, where 'R' is 0 for pre-release and '1' for released, and 'l'
> > is the level - '0' for alpha, '1' for beta, and so on. This still
> > satifies 1.4 (104000010) > 1.4BETA (104000002).
>
> this seems reasonable to me.
Cool, I'll knock something together that does this then.
Simon.