mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03: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
|
||||
|
||||
for SCRIPT in *.cocci ; do
|
||||
for SCRIPT in ${@-*.cocci} ; do
|
||||
[ "$SCRIPT" = "empty-if.cocci" ] && continue
|
||||
echo "--x-- Processing $SCRIPT --x--"
|
||||
TMPFILE=`mktemp`
|
||||
|
Loading…
x
Reference in New Issue
Block a user