History

Coccinelle: Make 'report' the default mode

It appears that the 'report' mode is the one always provided by the semantic patches included in the kernel. It is thus more natural to select it by default. The 'chain' mode is however kept and the 'patch' mode is still the first tried in that case.

Nicolas Palix committed 13 years ago

Commit 1f0a6741 parent f7224061 file · +11 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/coccicheck+11−3
@@ -44,11 +44,19 @@ fi · 43 unmodified lines
44 44
45if [ "$MODE" = "" ] ; then45if [ "$MODE" = "" ] ; then
46 if [ "$ONLINE" = "0" ] ; then46 if [ "$ONLINE" = "0" ] ; then
47 echo 'You have not explicitly specified the mode to use. Using default "chain" mode.'47 echo 'You have not explicitly specified the mode to use. Using default "report" mode.'
48 echo 'All available modes will be tried (in that order): patch, report, context, org'48 echo 'Available modes are the following: patch, report, context, org'
49 echo 'You can specify the mode with "make coccicheck MODE=<mode>"'49 echo 'You can specify the mode with "make coccicheck MODE=<mode>"'
50 echo 'Note however that some modes are not implemented by some semantic patches.'
51 fi
52 MODE="report"
53fi
54
55if [ "$MODE" = "chain" ] ; then
56 if [ "$ONLINE" = "0" ] ; then
57 echo 'You have selected the "chain" mode.'
58 echo 'All available modes will be tried (in that order): patch, report, context, org'
50 fi59 fi
51 MODE="chain"
52elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then60elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
53 FLAGS="$FLAGS -no_show_diff"61 FLAGS="$FLAGS -no_show_diff"
54fi62fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t