projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
net: ipv6: make "ip -6 route get mark xyz" work.
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
scripts
/
android-version.sh
1
#!/bin/sh
2
3
MAJOR
=
$
(
echo
$1
| cut
-d
'.'
-f
1
)
4
MINOR
=
$
(
echo
$1
| cut
-d
'.'
-f
2
)
5
PATCH
=
$
(
echo
$1
| cut
-d
'.'
-f
3
)
6
if
[
"x
$PATCH
"
!=
"x"
] ;
then
7
printf
"%d%02d%02d
\\
n"
$MAJOR $MINOR $PATCH
8
else
9
printf
"%d%02d00
\\
n"
$MAJOR $MINOR
10
fi