blob: f463f5eed5de3a1d4c6f46c44ab09474f800b918 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/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
|