From: Jesper Juhl <jesper.juhl@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Jesper Juhl <jesper.juhl@gmail.com>, sam@ravenborg.org
Subject: [PATCH] fixup binutils printing from scripts/ver_linux
Date: Mon, 9 Jul 2007 01:47:58 +0200 [thread overview]
Message-ID: <200707090147.58611.jesper.juhl@gmail.com> (raw)
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@dragon:~/kernel/linux-2.6$ scripts/ver_linux
...
binutils Binutils
...
Post this patch:
juhl@dragon:~/kernel/linux-2.6$ scripts/ver_linux
...
binutils 2.17.50.0.17.20070615
...
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.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@gmail.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
next reply other threads:[~2007-07-08 23:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 23:47 Jesper Juhl [this message]
2007-07-09 2:06 ` [PATCH] fixup binutils printing from scripts/ver_linux Alexey Dobriyan
2007-07-09 2:39 ` Gabriel C
2007-07-09 10:41 ` Jan Engelhardt
2007-07-09 11:33 ` drop it ?(Re: [PATCH] fixup binutils printing from scripts/ver_linux) Oleg Verych
2007-07-09 12:20 ` Oleg Verych
2007-07-09 18:42 ` Jan Engelhardt
2007-07-09 11:39 ` [PATCH] fixup binutils printing from scripts/ver_linux Gabriel C
2007-07-09 11:44 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707090147.58611.jesper.juhl@gmail.com \
--to=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravenborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.