3 # Echo the name of every argument of this script that is not "perfect"
4 # according to coccinelle's --parse-c.
6 # If $TOR_COCCI_EXCEPTIONS_FILE is non-empty, skip any files that match the
7 # patterns in the exception file, according to "grep -f"
9 # If VERBOSE is non-empty, log spatch errors and skipped files.
11 top
="$(dirname "$0")/../.."
17 if test "${TOR_COCCI_EXCEPTIONS_FILE}" ; then
18 skip_fn
=$
(echo "$fn" |
grep -f "${TOR_COCCI_EXCEPTIONS_FILE}")
19 if test "${skip_fn}" ; then
20 if test "${VERBOSE}" != ""; then
21 echo "Skipping '${skip_fn}'"
27 if spatch
--macro-file-builtins \
28 "$top"/scripts
/coccinelle
/tor-coccinelle.h \
31 2>/dev
/null |
grep "perfect = 1" > /dev
/null
; then
35 if test "${VERBOSE}" != ""; then
36 spatch
--macro-file-builtins \
37 "$top"/scripts
/coccinelle
/tor-coccinelle.h \