diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-08-01 19:21:15 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-12 15:15:31 -0400 |
commit | cc9eefdb9ed5603e2ab0b77fc1f6b671332ceeed (patch) | |
tree | 6d93d16e3259174c96396e126c5053e79955a110 /scripts/ver_linux | |
parent | 9cc3ef30346da96f3dd7f2e328e8a5ff46a37fd9 (diff) |
kbuild: scripts/ver_linux : correct printing of binutils version
Currently scripts/ver_linux prints "Binutils" or other random
information for the version number in the "binutils" output line
on some distributions. This patch corrects that.
When I initially submitted a patch to correct that, I was not aware
that the output from "ld -v" could differ as much as it turned out
it can, so my original fix turned out to not cover all bases.
This patch works correctly with all the different "ld -v" output
that people posted in replys to my first patch, so it should be a
clear win over what we have currently.
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, 1 insertions, 3 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux index 5a16bad7259..ab69ecefedb 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
@@ -21,9 +21,7 @@ gcc --version 2>&1| grep gcc | awk \ | |||
21 | make --version 2>&1 | awk -F, '{print $1}' | awk \ | 21 | make --version 2>&1 | awk -F, '{print $1}' | awk \ |
22 | '/GNU Make/{print "Gnu make ",$NF}' | 22 | '/GNU Make/{print "Gnu make ",$NF}' |
23 | 23 | ||
24 | ld -v | awk -F\) '{print $1}' | awk \ | 24 | echo "binutils $(ld -v | egrep -o '[0-9]+\.[0-9\.]+')" |
25 | '/BFD/{print "binutils ",$NF} \ | ||
26 | /^GNU/{print "binutils ",$4}' | ||
27 | 25 | ||
28 | echo -n "util-linux " | 26 | echo -n "util-linux " |
29 | fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$// | 27 | fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$// |