mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
coccinelle: improve run-coccinelle.sh to take list of scripts to run
Let's tweak run-coccinelle.sh to optionally take a list of scripts to run. If not specified, run all scripts, as before.
This commit is contained in:
parent
e97b7b5a9c
commit
3708254f36
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
for SCRIPT in *.cocci ; do
|
for SCRIPT in ${@-*.cocci} ; do
|
||||||
[ "$SCRIPT" = "empty-if.cocci" ] && continue
|
[ "$SCRIPT" = "empty-if.cocci" ] && continue
|
||||||
echo "--x-- Processing $SCRIPT --x--"
|
echo "--x-- Processing $SCRIPT --x--"
|
||||||
TMPFILE=`mktemp`
|
TMPFILE=`mktemp`
|
||||||
|
|
Loading…
Reference in a new issue