mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
849b610489
Let's make sure run-coccinelle.sh generates similar output as run-integration-tests.sh, hence use the same "set -x" logic.
10 lines
288 B
Bash
Executable File
10 lines
288 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
for SCRIPT in ${@-*.cocci} ; do
|
|
echo "--x-- Processing $SCRIPT --x--"
|
|
TMPFILE=`mktemp`
|
|
( set -x ; spatch --sp-file $SCRIPT --dir $PWD/.. 2> "$TMPFILE" || cat "$TMPFILE" )
|
|
rm "$TMPFILE"
|
|
echo -e "--x-- Processed $SCRIPT --x--\n"
|
|
done
|