repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
i2c: aspeed: Adjust spinlock scope in the irq handler
[linux/fpc-iii.git]
/
scripts
/
ld-version.sh
blob
f2be0ff9a738aca75c014c80b7535833d1eeb1a1
1
#!/usr/bin/awk -f
2
# SPDX-License-Identifier: GPL-2.0
3
# extract linker version number from stdin and turn into single number
4
{
5
gsub
(
".*
\\
)"
,
""
);
6
gsub
(
".*version "
,
""
);
7
gsub
(
"-.*"
,
""
);
8
split
(
$
1
,
a
,
"."
);
9
print
a
[
1
]*
100000000
+
a
[
2
]*
1000000
+
a
[
3
]*
10000
;
10
exit
11
}