aboutsummaryrefslogtreecommitdiff
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
parentMerge pull request #7567 from yuwata/fix-nobody (diff)
downloadsystemd-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-xcoccinelle/run-coccinelle.sh2
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`