diff options
| -rwxr-xr-x | scripts/coccicheck | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck index 7529af15672..1bb1a1bd2da 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck | |||
| @@ -32,7 +32,7 @@ if [ "$MODE" = "" ] ; then | |||
| 32 | fi | 32 | fi |
| 33 | MODE="chain" | 33 | MODE="chain" |
| 34 | elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then | 34 | elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then |
| 35 | FLAGS="$FLAGS -no_show_diff" | 35 | FLAGS="$FLAGS -no_show_diff" |
| 36 | fi | 36 | fi |
| 37 | 37 | ||
| 38 | if [ "$ONLINE" = "0" ] ; then | 38 | if [ "$ONLINE" = "0" ] ; then |
| @@ -47,7 +47,7 @@ coccinelle () { | |||
| 47 | 47 | ||
| 48 | OPT=`grep "Option" $COCCI | cut -d':' -f2` | 48 | OPT=`grep "Option" $COCCI | cut -d':' -f2` |
| 49 | 49 | ||
| 50 | # The option '-parse_cocci' can be used to syntaxically check the SmPL files. | 50 | # The option '-parse_cocci' can be used to syntactically check the SmPL files. |
| 51 | # | 51 | # |
| 52 | # $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null | 52 | # $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null |
| 53 | 53 | ||
| @@ -62,7 +62,17 @@ coccinelle () { | |||
| 62 | 62 | ||
| 63 | sed -ne 's|^///||p' $COCCI | 63 | sed -ne 's|^///||p' $COCCI |
| 64 | 64 | ||
| 65 | echo ' The semantic patch that makes this change is available' | 65 | if [ "$MODE" = "patch" ] ; then |
| 66 | echo ' The semantic patch that makes this change is available' | ||
| 67 | elif [ "$MODE" = "report" ] ; then | ||
| 68 | echo ' The semantic patch that makes this report is available' | ||
| 69 | elif [ "$MODE" = "context" ] ; then | ||
| 70 | echo ' The semantic patch that spots this code is available' | ||
| 71 | elif [ "$MODE" = "org" ] ; then | ||
| 72 | echo ' The semantic patch that makes this Org report is available' | ||
| 73 | else | ||
| 74 | echo ' The semantic patch that makes this output is available' | ||
| 75 | fi | ||
| 66 | echo " in $FILE." | 76 | echo " in $FILE." |
| 67 | echo '' | 77 | echo '' |
| 68 | echo ' More information about semantic patching is available at' | 78 | echo ' More information about semantic patching is available at' |
