[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200707090147.58611.jesper.juhl@gmail.com>
Date: Mon, 9 Jul 2007 01:47:58 +0200
From: Jesper Juhl <jesper.juhl@...il.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: Jesper Juhl <jesper.juhl@...il.com>, sam@...enborg.org
Subject: [PATCH] fixup binutils printing from scripts/ver_linux
I just found that scripts/ver_linux does not print the binutils version
properly on my Slackware 12.0 system.
The following patch fixes things up.
Pre this patch:
juhl@...gon:~/kernel/linux-2.6$ scripts/ver_linux
...
binutils Binutils
...
Post this patch:
juhl@...gon:~/kernel/linux-2.6$ scripts/ver_linux
...
binutils 2.17.50.0.17.20070615
...
Signed-off-by: Jesper Juhl <jesper.juhl@...il.com>
---
scripts/ver_linux | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/ver_linux b/scripts/ver_linux
index 72876df..2f96a1b 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -21,9 +21,8 @@ gcc --version 2>&1| grep gcc | awk \
make --version 2>&1 | awk -F, '{print $1}' | awk \
'/GNU Make/{print "Gnu make ",$NF}'
-ld -v | awk -F\) '{print $1}' | awk \
-'/BFD/{print "binutils ",$NF} \
-/^GNU/{print "binutils ",$4}'
+echo "binutils $(ld -v | awk -F \) \
+{'print $2'} | tr -d ' ')"
echo -n "util-linux "
fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$//
--
Jesper Juhl <jesper.juhl@...il.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists