mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
12 lines
336 B
Bash
12 lines
336 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
for SCRIPT in *.cocci ; do
|
||
|
[ "$SCRIPT" = "empty-if.cocci" ] && continue
|
||
|
echo "--x-- Processing $SCRIPT --x--"
|
||
|
TMPFILE=`mktemp`
|
||
|
spatch --sp-file $SCRIPT --dir $(pwd)/.. 2> "$TMPFILE" || cat "$TMPFILE"
|
||
|
rm "$TMPFILE"
|
||
|
echo "--x-- Processed $SCRIPT --x--"
|
||
|
echo ""
|
||
|
done
|