[PATCH 1/2] Simplify vesion extraction and correct some bugglet.
Dirk Hohndel
dirk at hohndel.org
Sat Feb 16 10:00:13 PST 2013
On February 16, 2013 8:30:09 AM Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn at axis.com> 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
Actually, that is exactly what I want. These two are mostly for me for
building the windows and Mac installers. Windows wants four digits, Mac
three. And I use the third digit to indicate the number of commits
since the last tag. This way you can see that this is not a "release".
/D
More information about the subsurface
mailing list