ld-version.sh 269 Bytes
Newer Older
1
#!/usr/bin/awk -f
2
# SPDX-License-Identifier: GPL-2.0
3 4
# extract linker version number from stdin and turn into single number
	{
5
	gsub(".*\\)", "");
6 7
	gsub(".*version ", "");
	gsub("-.*", "");
8
	split($1,a, ".");
9
	print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
10 11
	exit
	}