tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 51c2097586dd6133a862985ab68ded85736d40e8
parent 9ab96550da079abe048d1e0e2065e3fb85634cda
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed,  9 Oct 2019 09:31:10 -0400

try_parse.sh: add a verbose mode and a meaningful exit code.

Diffstat:
Mscripts/coccinelle/try_parse.sh | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/scripts/coccinelle/try_parse.sh b/scripts/coccinelle/try_parse.sh @@ -5,6 +5,8 @@ top="$(dirname "$0")/../.." +exitcode=0 + for fn in "$@"; do if spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \ @@ -13,6 +15,13 @@ for fn in "$@"; do : # it's perfect else echo "$fn" + if test "${VERBOSE}" != ""; then + spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \ + -I "$top" -I "$top"/src -I "$top"/ext --parse-c "$fn" + fi + exitcode=1 fi done + +exit "$exitcode"