blob: 104cda7b90c9ed04ffbe289d4e01a9526cf00354 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# extract linker version number from stdin and turn into single number
4exec awk '
5 {
6 gsub(".*\\)", "");
7 gsub(".*version ", "");
8 gsub("-.*", "");
9 split($1,a, ".");
10 print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
11 exit
12 }
13'