blob: 0f8a2c0f95026cb4f706810b2e95fdd9efb23ff2 [file] [log] [blame]
Andi Kleenccbef162014-02-08 09:01:13 +01001#!/usr/bin/awk -f
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01002# SPDX-License-Identifier: GPL-2.0
Andi Kleenccbef162014-02-08 09:01:13 +01003# extract linker version number from stdin and turn into single number
4 {
James Hogan4b7b1ef2016-03-08 16:47:53 +00005 gsub(".*\\)", "");
Michael S. Tsirkin80830132016-01-07 19:55:24 +02006 gsub(".*version ", "");
7 gsub("-.*", "");
Andi Kleenccbef162014-02-08 09:01:13 +01008 split($1,a, ".");
Masahiro Yamada052c8052020-12-13 01:54:30 +09009 print a[1]*10000 + a[2]*100 + a[3];
Andi Kleenccbef162014-02-08 09:01:13 +010010 exit
11 }