mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
a2bb66c355
This will let us give specific in-file equivalents to given macros or preprocessor directives, to make things parse.
10 lines
268 B
Bash
Executable File
10 lines
268 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 --defined COCCI "$@"
|