]>
git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/run-coccinelle.sh
3 top
="$(git rev-parse --show-toplevel)"
4 files
="$(git ls-files ':/*.[ch]')"
9 args
="$args --in-place"
14 for SCRIPT
in ${@-$top/coccinelle/*.cocci} ; do
15 echo "--x-- Processing $SCRIPT --x--"
17 echo "+ spatch --sp-file $SCRIPT $args ..."
18 spatch
--sp-file $SCRIPT $args $files 2>"$TMPFILE" ||
cat "$TMPFILE"
20 echo -e "--x-- Processed $SCRIPT --x--\n"