public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix up printing of Linux C Library version in scripts/ver_linux
@ 2007-05-07 11:44 Jesper Juhl
  2007-05-17 22:09 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2007-05-07 11:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sam Ravnborg, jesper.juhl


I just noticed, when running scripts/ver_linux on a Gentoo system, that the
line printing the C library version looked a little odd. So I fixed it up
to be in line with all the rest.

Old output:
Linux C Library        > libc.2.5
New output:
Linux C Library        2.5


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

scripts/ver_linux |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ver_linux b/scripts/ver_linux
index 72876df..8f8df93 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -66,8 +66,8 @@ showmount --version 2>&1 | grep nfs-utils | awk \
 'NR==1{print "nfs-utils             ", $NF}'
 
 ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
--e 's/\.so$//' | awk -F'[.-]'   '{print "Linux C Library        " \
-$(NF-2)"."$(NF-1)"."$NF}'
+-e 's/\.so$//' | sed -e 's/>//' | \
+awk -F'[.-]' '{print "Linux C Library        "$(NF-1)"."$NF}'
 
 ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix up printing of Linux C Library version in scripts/ver_linux
  2007-05-07 11:44 [PATCH] fix up printing of Linux C Library version in scripts/ver_linux Jesper Juhl
@ 2007-05-17 22:09 ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2007-05-17 22:09 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: linux-kernel

On Mon, May 07, 2007 at 01:44:05PM +0200, Jesper Juhl wrote:
> 
> I just noticed, when running scripts/ver_linux on a Gentoo system, that the
> line printing the C library version looked a little odd. So I fixed it up
> to be in line with all the rest.
> 
> Old output:
> Linux C Library        > libc.2.5
> New output:
> Linux C Library        2.5
> 

Thanks, applied.

	Sam

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-17 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 11:44 [PATCH] fix up printing of Linux C Library version in scripts/ver_linux Jesper Juhl
2007-05-17 22:09 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox