[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: little help with configure test
From: Anatoli Gorchetchnikov <anatoli () cns ! bu ! edu>
Date: 2002-01-09 18:31:41
[Download RAW message or body]
Never mind
`echo $lib_version | sed -e 's#\([0-9]\+\).\([0-9]\+\).*#\1.\2#'`
did the trick
TAnGorN
On Tuesday 08 January 2002 21:15, TAnGorN \(Anatoli Gorchetchnikov\) wrote:
> Well, it's for KDE app, so should not be too OT :)...
>
> I'm trying to check the library version I'm linking against. I can
> get full version, and then I want to check whether two major numbers
> match my reqs. So I tried
>
> lib_ver_maj="'echo $lib_version | sed
> s%\([0-9]\+\).\([0-9]\+\).*%\1.\2%'"
>
> lib_ver_maj='echo '$lib_version' | sed
> 's%\([0-9]\+\).\([0-9]\+\).*%\1.\2%''
>
> and several similar commands to strip the subminor number, but it
> does not seem to work, and I'm not experienced enough with shell
> scripts to figure out why. I bet it is something two keystrokes away,
> can you kindly point out these keystrokes?
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic