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.
This commit is contained in:
parent
34d267776a
commit
849b610489
|
@ -1,10 +1,9 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
for SCRIPT in ${@-*.cocci} ; do
|
for SCRIPT in ${@-*.cocci} ; do
|
||||||
echo "--x-- Processing: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--"
|
echo "--x-- Processing $SCRIPT --x--"
|
||||||
TMPFILE=`mktemp`
|
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"
|
rm "$TMPFILE"
|
||||||
echo "--x-- Processed: spatch --sp-file $SCRIPT --dir $(pwd)/.. --x--"
|
echo -e "--x-- Processed $SCRIPT --x--\n"
|
||||||
echo ""
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue