projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e97b7b5
)
coccinelle: improve run-coccinelle.sh to take list of scripts to run
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Dec 2017 11:11:13 +0000
(12:11 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Dec 2017 11:11:13 +0000
(12:11 +0100)
Let's tweak run-coccinelle.sh to optionally take a list of scripts to
run. If not specified, run all scripts, as before.
coccinelle/run-coccinelle.sh
patch
|
blob
|
history
diff --git
a/coccinelle/run-coccinelle.sh
b/coccinelle/run-coccinelle.sh
index
fe3aeb6
..
1373b53
100755
(executable)
--- a/
coccinelle/run-coccinelle.sh
+++ b/
coccinelle/run-coccinelle.sh
@@
-1,6
+1,6
@@
#!/bin/bash -e
-for SCRIPT in
*.cocci
; do
+for SCRIPT in
${@-*.cocci}
; do
[ "$SCRIPT" = "empty-if.cocci" ] && continue
echo "--x-- Processing $SCRIPT --x--"
TMPFILE=`mktemp`