[PATCH 1/2] Simplify vesion extraction and correct some bugglet.
dirk at hohndel.org
Sat Feb 16 10:09:06 PST 2013
That is what we want. If you can create simpler code to create that,
please go ahead
On February 16, 2013 10:06:22 AM Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn at axis.com> wrote:
> On Sat, 16 Feb 2013, Henrik Brautaset Aronsen wrote:
> > 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='126.96.36.199'
> > 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 "188.8.131.52" and "2.1.0".
> Hmm... I was almost certain I was missing something, but hey, the
> documentations didn't help me much :(
> # Mac Info.plist style with three numbers 1.2.3
> Alright, so in a scenario like:
> we want:
> but if:
> Back to the drawing board then ;)
> subsurface mailing list
> subsurface at hohndel.org
More information about the subsurface