File: ld-version.sh

package info (click to toggle)
linux-tools 4.4-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 26,236 kB
  • sloc: ansic: 302,415; perl: 15,242; asm: 9,350; sh: 8,158; python: 7,955; makefile: 7,238; yacc: 2,669; cpp: 2,489; lex: 1,561; awk: 770
file content (8 lines) | stat: -rwxr-xr-x 205 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
#!/usr/bin/awk -f
# extract linker version number from stdin and turn into single number
	{
	gsub(".*)", "");
	split($1,a, ".");
	print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
	exit
	}