From 3708254f3666744b095b17f8ee98ab651b12b4f3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 Dec 2017 12:11:13 +0100 Subject: [PATCH] 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. --- coccinelle/run-coccinelle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`