Propose of new version scheme

Jochen Bern Jochen.Bern at LINworks.de
Thu Mar 20 23:32:15 CET 2014


On 20.03.2014 16:06, Günter Kits wrote:
> This would be extremely pain in the ass for scripts to do automatical
> version comparison.
> 
> On 20.03.2014 17:04, Jochen Bern wrote:
>> > Changing the major "number" to letters in alphabetical order or 
>> > codenames beginning with them, then? Or are there package
>> > management tools which can't work with that?
>> > 
>> > 1.5	  ->	Aluminum.5
>> > 2.0	  ->	Boron.0
>> > 3.1.41	  ->	Chrome.1.41
>> > 4.7.11	  ->	Darmstadtium.7.11
>> > etc. etc..

As painful as normalizing the leading A..Z back to a number before doing
comparisons, but OK.

So we're stuck with '^[0-9][0-9]*\.[0-9][0-9]*(|\.[0-9][0-9]*)$' and
only increasing every number unless reset? Increasing by *one*,
specifically? Forbid leading zeros, just in case someone's doing the
traditional octal notation recognition? Still no prob. Pick one of the
mandatory numeral parts and decree that it shall count from 100 or 1000
up, rather than from 0 or 1. (Make it 100, rather than 1000, if you
think you might still run into machines with single-byte integers. ;-)

Regards,
								J. Bern
-- 
*NEU* - NEC IT-Infrastruktur-Produkte im <http://www.linworks-shop.de/>:
Server--Storage--Virtualisierung--Management SW--Passion for Performance
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel



More information about the Devel mailing list