Skip to content

Commit 7d9ec4c

Browse files
committed
Meta/Dothem: support --cocci
1 parent dfe9970 commit 7d9ec4c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dothem

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ inst_prefix=$(
1818
)
1919

2020
force= with_dash= test_long= M= install= nodoc= notest= bootstrap= branches= jobs=
21-
scratch= noprove= memtrash=--memtrash
21+
scratch= noprove= memtrash=--memtrash with_cocci=
2222
while case "$1" in
2323
--pedantic | --locale=* | --loose) M="$M $1" ;;
2424
--force) force=$1 ;;
2525
--dash) with_dash=y ;;
26+
--cocci) with_cocci=y ;;
27+
--no-cocci) with_cocci= ;;
2628
--long) test_long=--long ;;
2729
--noinstall) install=noinstall ;;
2830
--nodoc) nodoc=y ;;
@@ -200,6 +202,11 @@ do
200202

201203
save=$(git rev-parse HEAD) &&
202204

205+
if test -n "$with_cocci"
206+
then
207+
Meta/Make $M $jobs -- coccicheck
208+
fi &&
209+
203210
Meta/Make $M $jobs -- SPARSE_FLAGS=-Wsparse-error sparse &&
204211

205212
Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \

0 commit comments

Comments
 (0)