Skip to content

Commit

Permalink
kbuild: fix up printing of Linux C Library version in scripts/ver_linux
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Jesper Juhl authored and sravnborg committed Jul 25, 2007
1 parent 8d8d828 commit 4a645d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ver_linux
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit 4a645d5

Please sign in to comment.