On pátek 30 listopad 2007, Dan Stromberg wrote:
> We have a product with versions like:
>
> 3.0.1-dev
> 3.0.2-rc2
> 3.0.2.5 (for a customer version)
>
> ...etc.
>
> As I'm packaging these as RPM's, we've been trying to do:
>
> %define major 3
> %define minor 0
> %define patchlevel 2
> %define relnum rc2
>
>
> ...but is that going to confuse rpm?  That is, is relnum going to be
> compared numerically or as an ASCII string, or as something else?
>
> How can we ensure that dev < rc2 < 5 for relnum?  Do we need to come up
> with a numbering scheme like "dev is 0-20, rc is 21-40, customer
> versions are 41-60" etc?
>
Yes, converting everything to numbers is probably the most safe way.
Some project use something like 3.0.99.2 for 3.1-RC2.

-- 
Vladimir Nadvornik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to