[PATCH 1/2] Simplify vesion extraction and correct some bugglet.

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sat Feb 16 15:59:31 PST 2013


On Sat, 16 Feb 2013, Dirk Hohndel wrote:
> Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com> writes:
> > Subject: [PATCH 2/6] Unified handling of version extraction.
> >
> > Odd documentation text (scripts) moved to Documentation directrory, with
> > a different name (downloading-with-libdivecomputer).
>
> Actually, that file is from the dark ages and not useful at all
> today. Linus wrote this at the very, very beginning of the development
> cycle to document how to get XML files to start with. Neither of these
> two steps are necessary or useful at this stage, so I'll just delete
> that.

I thought you might.
Anyway, the advantage of having the unified vesion extraction was the real
purpose.  I find troubleshooting from command line superior, as in:

$ for os in linux darwin win foo;do printf '(%10s): ' $os; ./scripts/get-version $os;echo;done
(     linux): 2.1-645-g3ecb79733b2e
(    darwin): 2.1.645
(       win): 2.1.645.0
(       foo): git.missing.please.hardcode.version

$ for os in linux darwin win foo;do printf '(%10s): ' $os; ./scripts/get-version $os v3.0;echo;done
(     linux): 3.0
(    darwin): 3.0.0
(       win): 3.0.0.0
(       foo): git.missing.please.hardcode.version



Cheers,

-- 
Cristian


More information about the subsurface mailing list