Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
c0d73fbc
Commit
c0d73fbc
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
scripts: checkpatch.pl and Lindent from linux-3.4
parent
a2721762
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/Lindent
+18
-0
18 additions, 0 deletions
scripts/Lindent
scripts/checkpatch.pl
+3546
-0
3546 additions, 0 deletions
scripts/checkpatch.pl
with
3564 additions
and
0 deletions
scripts/Lindent
0 → 100755
+
18
−
0
View file @
c0d73fbc
#!/bin/sh
PARAM
=
"-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
RES
=
`
indent
--version
`
V1
=
`
echo
$RES
|
cut
-d
' '
-f3
|
cut
-d
'.'
-f1
`
V2
=
`
echo
$RES
|
cut
-d
' '
-f3
|
cut
-d
'.'
-f2
`
V3
=
`
echo
$RES
|
cut
-d
' '
-f3
|
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
"
$@
"
This diff is collapsed.
Click to expand it.
scripts/checkpatch.pl
0 → 100755
+
3546
−
0
View file @
c0d73fbc
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment