]> git.ipfire.org Git - thirdparty/bind9.git/commit
run individual spatch form check-cocci.sh
authorColin Vidal <colin@isc.org>
Tue, 14 Oct 2025 12:01:42 +0000 (14:01 +0200)
committerColin Vidal <colin@isc.org>
Wed, 22 Oct 2025 06:41:26 +0000 (08:41 +0200)
commit085bf46a09f193afd3fcb634cd695dfaa967f145
tree2a12e7aa206ebdb26b84b0b7c279cd60c4254223
parent9e8fd9f4d7f2518474758b162e6aec754692426d
run individual spatch form check-cocci.sh

Add util/check-cocci.sh support for a command-line argument which is a
path to a spatch file. Running `util/check-cocci.sh` runs all the spatch
in `cocci` folder. Running `util/check-cocci.sh cocci/foo.spatch` only
run the spatch `cocci/foo.spatch`.

Any command line parameters after `--` are forwarded to `spatch`
command, for instance:

`util/check-cocci.sh -- --debug`
`util/check-cocci.sh cocci/foo.spatch -- --debug`

Will (1) run all spatch files in cocci/ with --debug spatch option and
(2) run only `cocci/foo.spatch` with --debug options.
util/check-cocci.sh