summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
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