On Sat, 13 Aug 2016 18:28:23 -0400
qjail1 <[email protected]> wrote:
> >> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
> >> IGNORE= builds only on 10 or greater than 10
> >> .endif
> >
> > That's OSVERSION. The OP asked about OSREL.
> >
> > (however, OSVERSION is more useful as one can test it numerically;
> > it is documented in Chapter 16 of the Porter's Handbook, if the OP
> > wants to know more)
>
> I read Chapter 16 of the Porter's Handbook before posting. It doesn't
> say how you got to a "1000000" value for OSVERSION. Why so many zeros?
Because it gets incremented often. And I guess gaps are left for new
releases or whatever.
> A 10.0 value is what I interpret to be the value for OSREL. Is that
> correct?
Well, yes. But you might want to check for 'greater than' rather than
'equal to', and OSRELEASE is much better for that.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"