aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-15 15:17:35 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-15 15:17:35 -0800
commit332c8c22d28f9207b8fbad982ff4df5a3a63bc81 (patch)
treefe1c61f42b0d1435f3479235b574c80fe52660fd /scripts
parenta8b9e8d75c37eb5a9212007670512dde7006c0e3 (diff)
downloadhistory-332c8c22d28f9207b8fbad982ff4df5a3a63bc81.tar.gz
[PATCH] Fix scripts/ver_linux
From: Trivial Patch Monkey <trivial@rustcorp.com.au> From: Thomas Molina <tmolina@cablespeed.com> ver_linux hasn't displayed binutils version right for some time. This patch corrects that and preserves the old behaviour as well, as suggested by Rusty.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ver_linux5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux
index 4a1f3734393d6a..bec902b2f7c033 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -21,8 +21,9 @@ gcc --version 2>&1| grep gcc | awk \
make --version 2>&1 | awk -F, '{print $1}' | awk \
'/GNU Make/{print "Gnu make ",$NF}'
-ld -v 2>&1 | awk -F\) '{print $1}' | awk \
- '/BFD/{print "binutils ",$NF}'
+ld -v | awk -F\) '{print $1}' | awk \
+'/BFD/{print "binutils ",$NF} \
+/^GNU/{print "binutils ",$4}'
fdformat --version | awk -F\- '{print "util-linux ", $NF}'