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