blob: d135882e2c40936753c0dc7ffb0362d95532d2c3 [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, ".");
Maciej W. Rozycki0d61ed12016-02-11 14:25:43 +00008 print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
Andi Kleenccbef162014-02-08 09:01:13 +01009 exit
10 }