Skip to content
Snippets Groups Projects
Commit 51c20975 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

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

parent 9ab96550
No related branches found
No related tags found
No related merge requests found
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment