diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-26 15:42:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-28 10:01:15 +0100 |
commit | 340c01be7c72d33cea8446acfd45ac00986da679 (patch) | |
tree | 1e4f403f8a2299c43beb09f9e58433465dffa21d /coccinelle | |
parent | util: add new safe_close_above_stdio() wrapper (diff) | |
download | systemd-340c01be7c72d33cea8446acfd45ac00986da679.tar.gz systemd-340c01be7c72d33cea8446acfd45ac00986da679.tar.bz2 systemd-340c01be7c72d33cea8446acfd45ac00986da679.zip |
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.
Diffstat (limited to 'coccinelle')
-rwxr-xr-x | coccinelle/run-coccinelle.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index e982e3b0f..de23546f1 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 |