diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-07 12:11:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-07 12:11:13 +0100 |
commit | 3708254f3666744b095b17f8ee98ab651b12b4f3 (patch) | |
tree | 3ae2a6632bc8316a7beb89642f8f2a773fe45b4b /coccinelle | |
parent | Merge pull request #7567 from yuwata/fix-nobody (diff) | |
download | systemd-3708254f3666744b095b17f8ee98ab651b12b4f3.tar.gz systemd-3708254f3666744b095b17f8ee98ab651b12b4f3.tar.bz2 systemd-3708254f3666744b095b17f8ee98ab651b12b4f3.zip |
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.
Diffstat (limited to 'coccinelle')
-rwxr-xr-x | coccinelle/run-coccinelle.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index fe3aeb68c..1373b53c5 100755 --- 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` |