[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix STEPMAKE_GET_VERSION for OpenBSD
From: |
Jan Nieuwenhuizen |
Subject: |
Re: Fix STEPMAKE_GET_VERSION for OpenBSD |
Date: |
Wed, 16 Dec 2009 14:01:54 +0100 |
Op woensdag 16-12-2009 om 11:40 uur [tijdzone +1100], schreef
address@hidden:
> >>>>> "Matthias" == Matthias Kilian <address@hidden> writes:
> This is very complicated. Why not just something like:
It /is/ very complicated.
> { lilypond -V || lilypond --version; } 2>&1 |
> sed -n -e 's/^[^0-9.]*\([0-9][0-9]*\.[0-9][0-9.]*\).*$/\1/p'
For one, swapping -V and --version order like you did here barfs
with gs and fontforge.
> If there could be more than one version then this:
I think we must cater for that, debian often duplicates version numbers
in gcc, eg.
> { lilypond -V || lilypond --version; } 2>&1 |
> sed -n '/[0-9][0-9*\.[0-9][0-9.]*/{
> s/^[^0-9.]*\([0-9][0-9]*\.[0-9][0-9.]*\).*$/\1/p'
> q
> }'
> should do the trick.
Yes, one of these might work (swapping --version and -V order back).
The question is if we want to try/risk that. Not everyone on weird
systems send bug reports. Some just are annoyed configure fails
and give up.
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
AvatarĀ®: http://AvatarAcademy.nl | http://lilypond.org