Masahiro Yamada | 598e2d3 | 2014-04-15 13:29:00 +0900 | [diff] [blame] | 1 | #!/usr/bin/awk -f |
Heinrich Schuchardt | b5142f2 | 2017-11-08 23:44:55 +0100 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0 |
Masahiro Yamada | 598e2d3 | 2014-04-15 13:29:00 +0900 | [diff] [blame] | 3 | # extract linker version number from stdin and turn into single number |
| 4 | { |
Heinrich Schuchardt | b5142f2 | 2017-11-08 23:44:55 +0100 | [diff] [blame] | 5 | gsub(".*\\)", ""); |
| 6 | gsub(".*version ", ""); |
| 7 | gsub("-.*", ""); |
Masahiro Yamada | 598e2d3 | 2014-04-15 13:29:00 +0900 | [diff] [blame] | 8 | split($1,a, "."); |
Heinrich Schuchardt | b5142f2 | 2017-11-08 23:44:55 +0100 | [diff] [blame] | 9 | print a[1]*100000000 + a[2]*1000000 + a[3]*10000; |
Masahiro Yamada | 598e2d3 | 2014-04-15 13:29:00 +0900 | [diff] [blame] | 10 | exit |
| 11 | } |