X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2Fcoccicheck;h=1a49d1c7ecfeb793a6bd116410f3c6449714eea5;hb=f38787f4f921222d080d976ef59210ce3c6c6cb4;hp=823e972149e5487fd09d974e9052c3a4d3d8214f;hpb=9f9d2760da8c7f94fae119fac3e13d5a1702f8f0;p=~andy%2Flinux diff --git a/scripts/coccicheck b/scripts/coccicheck index 823e972149e..1a49d1c7ecf 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -95,6 +95,9 @@ coccinelle () { $SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || \ $SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || \ $SPATCH -D org $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff || exit 1 + elif [ "$MODE" = "rep+ctxt" ] ; then + $SPATCH -D report $FLAGS -sp_file $COCCI $OPT $OPTIONS -no_show_diff && \ + $SPATCH -D context $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1 else $SPATCH -D $MODE $FLAGS -sp_file $COCCI $OPT $OPTIONS || exit 1 fi