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
Linux 3.18.123
[linux/fpc-iii.git]
/
scripts
/
ld-version.sh
blob
1659b409ef1071a7bc6e8c7a558a87a3dc772f96
1
#!/usr/bin/awk -f
2
# extract linker version number from stdin and turn into single number
3
{
4
gsub
(
".*
\\
)"
,
""
);
5
split
(
$
1
,
a
,
"."
);
6
print
a
[
1
]*
10000000
+
a
[
2
]*
100000
+
a
[
3
]*
10000
+
a
[
4
]*
100
+
a
[
5
];
7
exit
8
}