mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Add a script to run spatch with appropriate arguments
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.
This commit is contained in:
parent
41261c3b5c
commit
9a101c2c0f
9
scripts/coccinelle/apply.sh
Executable file
9
scripts/coccinelle/apply.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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 "$@"
|
Loading…
Reference in New Issue
Block a user