]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/run-coccinelle.sh
Merge pull request #8562 from keszybz/docs
[thirdparty/systemd.git] / coccinelle / run-coccinelle.sh
1 #!/bin/bash -e
2
3 for SCRIPT in ${@-*.cocci} ; do
4 echo "--x-- Processing $SCRIPT --x--"
5 TMPFILE=`mktemp`
6 ( set -x ; spatch --sp-file $SCRIPT --dir $PWD/.. 2> "$TMPFILE" || cat "$TMPFILE" )
7 rm "$TMPFILE"
8 echo -e "--x-- Processed $SCRIPT --x--\n"
9 done