From: Lennart Poettering Date: Mon, 26 Feb 2018 14:42:45 +0000 (+0100) Subject: coccinelle: slightly improve run-coccinelle.sh X-Git-Tag: v238~37^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=340c01be7c72d33cea8446acfd45ac00986da679;p=thirdparty%2Fsystemd.git coccinelle: slightly improve run-coccinelle.sh Let's include the command line to use to get the requested output. This makes it easy to copy/paste the command line out, and add "--in-place" to actually apply the changes "run-coccinelle.sh" outputs. --- diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index e982e3b0fca..de23546f191 100755 --- a/coccinelle/run-coccinelle.sh +++ b/coccinelle/run-coccinelle.sh @@ -1,10 +1,10 @@ #!/bin/bash -e for SCRIPT in ${@-*.cocci} ; do - echo "--x-- Processing $SCRIPT --x--" + echo "--x-- Processing: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--" TMPFILE=`mktemp` spatch --sp-file $SCRIPT --dir $(pwd)/.. 2> "$TMPFILE" || cat "$TMPFILE" rm "$TMPFILE" - echo "--x-- Processed $SCRIPT --x--" + echo "--x-- Processed: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--" echo "" done