2014-04-15 04:29:00 +00:00
|
|
|
#!/usr/bin/awk -f
|
2017-11-08 22:44:55 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2014-04-15 04:29:00 +00:00
|
|
|
# extract linker version number from stdin and turn into single number
|
|
|
|
{
|
2017-11-08 22:44:55 +00:00
|
|
|
gsub(".*\\)", "");
|
|
|
|
gsub(".*version ", "");
|
|
|
|
gsub("-.*", "");
|
2014-04-15 04:29:00 +00:00
|
|
|
split($1,a, ".");
|
2017-11-08 22:44:55 +00:00
|
|
|
print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
|
2014-04-15 04:29:00 +00:00
|
|
|
exit
|
|
|
|
}
|