[PATCH 1/2] Simplify vesion extraction and correct some bugglet.
Henrik Brautaset Aronsen
subsurface at henrik.synth.no
Sat Feb 16 09:54:04 PST 2013
Cristian Ionescu-Idbohrn wrote:
> AFAIU, what you want is to edit a string like 'v2.1-636-gc12ef0ce3eef'
> and strip off both the 'v' prefix and 'everything after the first dash'
> suffix, then add some zeroes. The sed regexps don't do that got me. And
> they are overly convoluted. I get:
>
> PRODVERSION_STRING=2.1.636.0
> CFBUNDLEVERSION_STRING=2.1.636
>
> This patch simplifies that and reuses code. Result:
>
> VERSION_STRING='v2.1-637-gd0b2b6a515b8'
> CFBUNDLEVERSION_STRING='2.1.0'
> PRODVERSION_STRING='2.1.0.0'
No, I think the "2.1.636.0" and "2.1.636" is used to identify
*development* versions. Prod versions (where HEAD is on a tag) will
have "2.1.0.0" and "2.1.0".
Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130216/939a950c/attachment.html>
More information about the subsurface
mailing list