Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6252040e
Commit
6252040e
authored
Apr 18, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `` by $() syntax in shell scripts.
$() is easier to nest and POSIX, which we require in other places.
parent
ff3be572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
clean-diff
tools/clean-diff
+1
-1
patcheck
tools/patcheck
+7
-7
No files found.
tools/clean-diff
View file @
6252040e
#!/bin/sh
#!/bin/sh
sed
'/^+[^+]/!s/ /TaBBaT/g'
|
\
sed
'/^+[^+]/!s/ /TaBBaT/g'
|
\
expand
-t
`
seq
-s
, 9 8 200
`
|
\
expand
-t
$(
seq
-s
, 9 8 200
)
|
\
sed
's/TaBBaT/ /g'
|
\
sed
's/TaBBaT/ /g'
|
\
sed
'/^+[^+]/s/ * $//'
|
\
sed
'/^+[^+]/s/ * $//'
|
\
tr
-d
'\015'
|
\
tr
-d
'\015'
|
\
...
...
tools/patcheck
View file @
6252040e
...
@@ -12,7 +12,7 @@ GREP=grep
...
@@ -12,7 +12,7 @@ GREP=grep
EGREP
=
egrep
EGREP
=
egrep
TMP
=
patcheck.tmp
TMP
=
patcheck.tmp
OPT
=
"-nH"
OPT
=
"-nH"
#FILES=
`$GREP '^+++' $* | sed 's/+++ //g'`
#FILES=
$($GREP '^+++' $* | sed 's/+++ //g')
echo
patCHeck 1e10.0
echo
patCHeck 1e10.0
echo
This tool is intended to
help
a human check/review patches it is very far from
echo
This tool is intended to
help
a human check/review patches it is very far from
...
@@ -43,7 +43,7 @@ hiegrep2(){
...
@@ -43,7 +43,7 @@ hiegrep2(){
}
}
hiegrep
'[[:space:]]$'
'trailing whitespace'
$*
hiegrep
'[[:space:]]$'
'trailing whitespace'
$*
hiegrep
"
`
echo
x |
tr
'x'
'\t'
`
"
'tabs'
$*
hiegrep
"
$(
echo
x |
tr
'x'
'\t'
)
"
'tabs'
$*
#hiegrep ':\+$' 'Empty lines' $*
#hiegrep ':\+$' 'Empty lines' $*
hiegrep
';;'
'double ;'
$*
hiegrep
';;'
'double ;'
$*
hiegrep2
'\b_[a-zA-Z0-9_]{1,}'
'__(asm|attribute)([^a-zA-Z0-9]|$)'
'reserved identifer'
$*
hiegrep2
'\b_[a-zA-Z0-9_]{1,}'
'__(asm|attribute)([^a-zA-Z0-9]|$)'
'reserved identifer'
$*
...
@@ -106,9 +106,9 @@ hiegrep ':\+ *{ *$' '{ should be on the same line as the related previous state
...
@@ -106,9 +106,9 @@ hiegrep ':\+ *{ *$' '{ should be on the same line as the related previous state
rm
$TMP
rm
$TMP
for
i
in
`
$GREP
-H
'^+.*@param'
$*
|
sed
's/^\([^:]*\):.*@param\(\[.*\]\|\) *\([a-zA-Z0-9_]*\) .*$/\1:\3/'
`
;
do
for
i
in
$(
$GREP
-H
'^+.*@param'
$*
|
sed
's/^\([^:]*\):.*@param\(\[.*\]\|\) *\([a-zA-Z0-9_]*\) .*$/\1:\3/'
)
;
do
doxpar
=
`
echo
$i
|
sed
's/^.*:\(.*\)$/\1/'
`
doxpar
=
$(
echo
$i
|
sed
's/^.*:\(.*\)$/\1/'
)
file
=
`
echo
$i
|
sed
's/^\([^:]*\):.*$/\1/'
`
file
=
$(
echo
$i
|
sed
's/^\([^:]*\):.*$/\1/'
)
$GREP
" *
$doxpar
*[),]"
$file
|
$GREP
-v
'@param'
>
/dev/null
||
$GREP
--color
=
always
"@param *
$doxpar
"
$file
>>
$TMP
$GREP
" *
$doxpar
*[),]"
$file
|
$GREP
-v
'@param'
>
/dev/null
||
$GREP
--color
=
always
"@param *
$doxpar
"
$file
>>
$TMP
done
done
if
test
-e
$TMP
;
then
if
test
-e
$TMP
;
then
...
@@ -121,11 +121,11 @@ cat $TMP
...
@@ -121,11 +121,11 @@ cat $TMP
rm
$TMP
rm
$TMP
for
i
in
\
for
i
in
\
`
$EGREP
-H
'^\+ *'
"
$ERE_TYPES
"
$*
|
\
$(
$EGREP
-H
'^\+ *'
"
$ERE_TYPES
"
$*
|
\
$GREP
-v
'('
|
$EGREP
-v
'\Wgoto\W'
|
\
$GREP
-v
'('
|
$EGREP
-v
'\Wgoto\W'
|
\
xargs
-d
'\n'
-n
1 |
\
xargs
-d
'\n'
-n
1 |
\
$GREP
-o
'[* ][* ]*[a-zA-Z][0-9a-zA-Z_]* *[,;=]'
|
\
$GREP
-o
'[* ][* ]*[a-zA-Z][0-9a-zA-Z_]* *[,;=]'
|
\
sed
's/.[* ]*\([a-zA-Z][0-9a-zA-Z_]*\) *[,;=]/\1/'
`
\
sed
's/.[* ]*\([a-zA-Z][0-9a-zA-Z_]*\) *[,;=]/\1/'
)
\
;
do
;
do
echo
$i
|
$GREP
'^NULL$'
&&
continue
echo
$i
|
$GREP
'^NULL$'
&&
continue
$EGREP
$i
' *(\+|-|\*|/|\||&|%|)=[^=]'
$*
>
/dev/null
||
echo
"possibly never written:"
$i
>>
$TMP
$EGREP
$i
' *(\+|-|\*|/|\||&|%|)=[^=]'
$*
>
/dev/null
||
echo
"possibly never written:"
$i
>>
$TMP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment