projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
[RAMEN9610-21380]HID: hiddev: do cleanup in failure of opening a device
[GitHub/MotorolaMobilityLLC/kernel-slsi.git]
/
scripts
/
ld-version.sh
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
}