mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
19 lines
452 B
Bash
19 lines
452 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Echo the name of every argument of this script that is not "perfect"
|
||
|
# according to coccinelle's --parse-c.
|
||
|
|
||
|
top="$(dirname "$0")/../.."
|
||
|
|
||
|
for fn in "$@"; do
|
||
|
|
||
|
if spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \
|
||
|
-I "$top" -I "$top"/src -I "$top"/ext --parse-c "$fn" \
|
||
|
2>/dev/null | grep "perfect = 1" > /dev/null; then
|
||
|
: # it's perfect
|
||
|
else
|
||
|
echo "$fn"
|
||
|
fi
|
||
|
|
||
|
done
|