mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
try_parse.sh: add a verbose mode and a meaningful exit code.
This commit is contained in:
parent
9ab96550da
commit
51c2097586
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user