Adapt scripts/ver_linux to new util-linux version strings
diff mbox series

Message ID 20050821092606.GB23626@mipter.zuzino.mipt.ru
State New, archived
Headers show
Series
  • Adapt scripts/ver_linux to new util-linux version strings
Related show

Commit Message

Alexey Dobriyan Aug. 21, 2005, 9:26 a.m. UTC
Tested with 2.12i and 2.13-pre2.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 scripts/ver_linux |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Comments

Adrian Bunk Aug. 21, 2005, 3:29 p.m. UTC | #1
On Sun, Aug 21, 2005 at 01:26:06PM +0400, Alexey Dobriyan wrote:

> Tested with 2.12i and 2.13-pre2.
>...

Looks good.

cu
Adrian

Patch
diff mbox series

--- linux-vanilla/scripts/ver_linux
+++ linux-util-linux/scripts/ver_linux
@@ -25,9 +25,11 @@ 
 '/BFD/{print "binutils              ",$NF} \
 /^GNU/{print "binutils              ",$4}'
 
-fdformat --version | awk -F\- '{print "util-linux            ", $NF}'
+echo -n "util-linux             "
+fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$//
 
-mount --version | awk -F\- '{print "mount                 ", $NF}'
+echo -n "mount                  "
+mount --version | awk '{print $NF}' | sed -e s/^mount-// -e s/\)$//
 
 depmod -V  2>&1 | awk 'NR==1 {print "module-init-tools     ",$NF}'