summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-07 12:11:13 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-07 12:11:13 +0100
commit3708254f3666744b095b17f8ee98ab651b12b4f3 (patch)
tree3ae2a6632bc8316a7beb89642f8f2a773fe45b4b /coccinelle
parente97b7b5a9c6d76964e3b9d8947ab6ccb30104e0e (diff)
downloadsystemd-3708254f3666744b095b17f8ee98ab651b12b4f3.tar.gz
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-xcoccinelle/run-coccinelle.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh
index fe3aeb68ce..1373b53c5f 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`