3 SPATCH
="`which ${SPATCH:=spatch}`"
5 if [ ! -x "$SPATCH" ]; then
6 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
10 if [ "$MODE" = "" ] ; then
11 echo 'You have not explicitly specify the mode to use. Fallback to "report".'
12 echo 'You can specify the mode with "make coccicheck MODE=<mode>"'
13 echo 'Available modes are: report, patch, context, org'
18 echo 'Please check for false positives in the output before submitting a patch.'
19 echo 'When using "patch" mode, carefully review the patch before submitting it.'
26 OPT
=`grep "Option" $COCCI | cut -d':' -f2`
27 FILE
=`echo $COCCI | sed "s|$DIR/||"`
29 echo "Processing `basename $COCCI` with option(s) \"$OPT\""
30 echo 'Message example to submit a patch:'
32 sed -e '/\/\/\//!d' -e 's|^///||' $COCCI
34 echo ' The semantic patch that makes this change is available'
37 echo ' More information about semantic patching is available at'
38 echo ' http://coccinelle.lip6.fr/'
41 # The option '-parse_cocci' can be used to syntaxically check the SmPL files.
43 # $SPATCH -D $MODE -very_quiet -parse_cocci $COCCI $OPT > /dev/null
45 $SPATCH -D $MODE -very_quiet -sp_file $COCCI $OPT -dir $DIR
48 if [ "$COCCI" = "" ] ; then
49 for f
in `find $srctree/scripts/coccinelle/ -name '*.cocci' -type f | sort`; do
50 coccinelle
$f $srctree;
53 coccinelle
$COCCI $srctree
This page took 0.061999 seconds and 6 git commands to generate.