diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-07-19 20:49:23 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-07-25 15:14:20 -0400 |
commit | 4a645d5ea65baaa5736bcb566673bf4a351b2ad8 (patch) | |
tree | 1dde070ef5b832bb82d282319ff397ef0826f0b5 /scripts/ver_linux | |
parent | 8d8d8289df65cb116d2721becafb37272074f25a (diff) |
kbuild: fix up printing of Linux C Library version in scripts/ver_linux
I noticed, when running scripts/ver_linux on both a Gentoo system
and a Slackware 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>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/ver_linux')
-rwxr-xr-x | scripts/ver_linux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux index 72876dfadc8a..8f8df93141a9 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
@@ -66,8 +66,8 @@ showmount --version 2>&1 | grep nfs-utils | awk \ | |||
66 | 'NR==1{print "nfs-utils ", $NF}' | 66 | 'NR==1{print "nfs-utils ", $NF}' |
67 | 67 | ||
68 | ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \ | 68 | ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \ |
69 | -e 's/\.so$//' | awk -F'[.-]' '{print "Linux C Library " \ | 69 | -e 's/\.so$//' | sed -e 's/>//' | \ |
70 | $(NF-2)"."$(NF-1)"."$NF}' | 70 | awk -F'[.-]' '{print "Linux C Library "$(NF-1)"."$NF}' |
71 | 71 | ||
72 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ | 72 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ |
73 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' | 73 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' |