diff options
author | 2018-03-23 15:44:10 +0100 | |
---|---|---|
committer | 2018-03-23 15:46:12 +0100 | |
commit | 849b610489a125799a7395f3d8223e63e5c21b40 (patch) | |
tree | 7ca2246c5f196b401716b7439bc016d9c96f8122 /coccinelle | |
parent | coccinelle: run const-strlen.cocci again (diff) | |
download | systemd-849b610489a125799a7395f3d8223e63e5c21b40.tar.gz systemd-849b610489a125799a7395f3d8223e63e5c21b40.tar.bz2 systemd-849b610489a125799a7395f3d8223e63e5c21b40.zip |
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-x | coccinelle/run-coccinelle.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index de23546f1..f463f5eed 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 |