From: teor Date: Thu, 24 Oct 2019 01:34:28 +0000 (+1000) Subject: scripts/cocci: Remove unused arguments from try_parse.sh spatch X-Git-Tag: tor-0.4.3.1-alpha~251^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87ee49e016a100951bb1dd37f2ef57826a951eb1;p=thirdparty%2Ftor.git scripts/cocci: Remove unused arguments from try_parse.sh spatch Part of 31919. --- diff --git a/scripts/coccinelle/try_parse.sh b/scripts/coccinelle/try_parse.sh index 6cdd968a0b..a90e51b4aa 100755 --- a/scripts/coccinelle/try_parse.sh +++ b/scripts/coccinelle/try_parse.sh @@ -24,16 +24,18 @@ for fn in "$@"; do fi fi - if spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \ - -I "$top" -I "$top"/src -I "$top"/ext --defined COCCI \ + if spatch --macro-file-builtins \ + "$top"/scripts/coccinelle/tor-coccinelle.h \ + --defined COCCI \ --parse-c "$fn" \ 2>/dev/null | grep "perfect = 1" > /dev/null; then : # 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 --defined COCCI \ + spatch --macro-file-builtins \ + "$top"/scripts/coccinelle/tor-coccinelle.h \ + --defined COCCI \ --parse-c "$fn" fi exitcode=1