FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
linux/scripts/Lindent at master · rdpwr/linux · GitHub
rdpwr
/
linux
Public
forked from
torvalds/linux
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
linux
/
scripts
/
Lindent
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (22 loc) · 502 Bytes
Breadcrumbs
linux
/
scripts
/
Lindent
Copy path
File metadata and controls
executable file
·
26 lines (22 loc) · 502 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/bin/sh
#
SPDX-License-Identifier: GPL-2.0
PARAM=
"
-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1
"
RES=
`
indent --version
|
cut -d
'
'
-f3
`
if
[
"
$RES
"
=
"
"
]
;
then
exit
1
fi
V1=
`
echo
$RES
|
cut -d
'
.
'
-f1
`
V2=
`
echo
$RES
|
cut -d
'
.
'
-f2
`
V3=
`
echo
$RES
|
cut -d
'
.
'
-f3
`
if
[
$V1
-gt
2 ]
;
then
PARAM=
"
$PARAM
-il0
"
elif
[
$V1
-eq
2 ]
;
then
if
[
$V2
-gt
2 ]
;
then
PARAM=
"
$PARAM
-il0
"
elif
[
$V2
-eq
2 ]
;
then
if
[
$V3
-ge
10 ]
;
then
PARAM=
"
$PARAM
-il0
"
fi
fi
fi
indent
$PARAM
"
$@
"
Back
|
FazBrowse Home
|
New Git URL