From: Lennart Poettering Date: Thu, 7 Dec 2017 11:11:13 +0000 (+0100) Subject: coccinelle: improve run-coccinelle.sh to take list of scripts to run X-Git-Tag: v236~42^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3708254f3666744b095b17f8ee98ab651b12b4f3;p=thirdparty%2Fsystemd.git 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. --- diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index fe3aeb68ce9..1373b53c5f4 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`