mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +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:
Executable
+9
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user