blob: 7bfe9fa1c8dc6db8d6c4415fbf0d26e66477e42e [file] [log] [blame]
Andi Kleenccbef162014-02-08 09:01:13 +01001#!/usr/bin/awk -f
2# extract linker version number from stdin and turn into single number
3 {
James Hogan4b7b1ef2016-03-08 16:47:53 +00004 gsub(".*\\)", "");
Michael S. Tsirkin80830132016-01-07 19:55:24 +02005 gsub(".*version ", "");
6 gsub("-.*", "");
Andi Kleenccbef162014-02-08 09:01:13 +01007 split($1,a, ".");
James Hogand5ece1c2015-12-26 22:47:52 +00008 print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5];
Andi Kleenccbef162014-02-08 09:01:13 +01009 exit
10 }