summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-03-23 15:44:10 +0100
committerLennart Poettering <lennart@poettering.net>2018-03-23 15:46:12 +0100
commit849b610489a125799a7395f3d8223e63e5c21b40 (patch)
tree7ca2246c5f196b401716b7439bc016d9c96f8122 /coccinelle
parent34d267776acf55ac1b4009f04f21a67547545aba (diff)
run-coccinelle.sh: use set -x for showing command line of "spatch"
Let's make sure run-coccinelle.sh generates similar output as run-integration-tests.sh, hence use the same "set -x" logic.
Diffstat (limited to 'coccinelle')
-rwxr-xr-xcoccinelle/run-coccinelle.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh
index de23546f19..f463f5eed5 100755
--- a/coccinelle/run-coccinelle.sh
+++ b/coccinelle/run-coccinelle.sh
@@ -1,10 +1,9 @@
#!/bin/bash -e
for SCRIPT in ${@-*.cocci} ; do
- echo "--x-- Processing: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--"
+ echo "--x-- Processing $SCRIPT --x--"
TMPFILE=`mktemp`
- spatch --sp-file $SCRIPT --dir $(pwd)/.. 2> "$TMPFILE" || cat "$TMPFILE"
+ ( set -x ; spatch --sp-file $SCRIPT --dir $PWD/.. 2> "$TMPFILE" || cat "$TMPFILE" )
rm "$TMPFILE"
- echo "--x-- Processed: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--"
- echo ""
+ echo -e "--x-- Processed $SCRIPT --x--\n"
done