[PATCH] Adapt scripts/ver_linux to new util-linux version strings

From: Alexey Dobriyan
Date: Sun Aug 21 2005 - 04:19:37 EST


Tested with 2.12i and 2.13-pre2.

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

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

--- 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}'


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