Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: Problems detecting automake version.
Home

[Freeciv-Dev] Re: Problems detecting automake version.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Problems detecting automake version.
From: Marko Lindqvist <marko.lindqvist@xxxxxxxxxxx>
Date: Tue, 19 Aug 2003 19:47:47 +0300

Per I. Mathisen wrote:

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?
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.


- Caz





[Prev in Thread] Current Thread [Next in Thread]