mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
9a101c2c0f
It's a bit tricky to remember the right incantation to get the proper include paths and incantations for coccinelle, but without it, coccinelle is less effective at parsing our C.
10 lines
252 B
Bash
Executable File
10 lines
252 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# apply.sh:
|
|
# run spatch with appropriate includes and builtins for the Tor source code
|
|
|
|
top="$(dirname "$0")/../.."
|
|
|
|
spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \
|
|
-I "$top" -I "$top"/src -I "$top"/ext "$@"
|