Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
August 2003: [Freeciv-Dev] Re: Problems detecting automake version. |
[Freeciv-Dev] Re: Problems detecting automake version.[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Per I. Mathisen wrote: When cutting actual version number from 'program --version' output, ignore everything inside brackets and brackets themselves (for first brackets). This way there can be another kind of version number inside brackets without version number detection getting fooled by it. Inside brackets is often name of the operating system packet program is part of.On Sat, 16 Aug 2003, Marko Lindqvist wrote:Attached patch works for me in that respect- pkg_version=`$PACKAGE --version|head -n 1|sed 's/^[a-zA-Z\.\ ()]*//;s/ .*$//'` + pkg_version=`$PACKAGE --version|head -n 1|sed 's/(.*)//;s/^[a-zA-Z\.\ ]*//;s/ .*$//'` Can you please explain what you are trying to do above? - Caz
|