]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/run-coccinelle.sh
Merge pull request #7572 from poettering/taint-manager
[thirdparty/systemd.git] / coccinelle / run-coccinelle.sh
1 #!/bin/bash -e
2
3 for SCRIPT in ${@-*.cocci} ; do
4 [ "$SCRIPT" = "empty-if.cocci" ] && continue
5 echo "--x-- Processing $SCRIPT --x--"
6 TMPFILE=`mktemp`
7 spatch --sp-file $SCRIPT --dir $(pwd)/.. 2> "$TMPFILE" || cat "$TMPFILE"
8 rm "$TMPFILE"
9 echo "--x-- Processed $SCRIPT --x--"
10 echo ""
11 done