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. Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
f722406faa
commit
1f0a6742dd
|
@ -44,11 +44,19 @@ fi
|
||||||
|
|
||||||
if [ "$MODE" = "" ] ; then
|
if [ "$MODE" = "" ] ; then
|
||||||
if [ "$ONLINE" = "0" ] ; then
|
if [ "$ONLINE" = "0" ] ; then
|
||||||
echo 'You have not explicitly specified the mode to use. Using default "chain" mode.'
|
echo 'You have not explicitly specified the mode to use. Using default "report" mode.'
|
||||||
echo 'All available modes will be tried (in that order): patch, report, context, org'
|
echo 'Available modes are the following: patch, report, context, org'
|
||||||
echo 'You can specify the mode with "make coccicheck MODE=<mode>"'
|
echo 'You can specify the mode with "make coccicheck MODE=<mode>"'
|
||||||
|
echo 'Note however that some modes are not implemented by some semantic patches.'
|
||||||
|
fi
|
||||||
|
MODE="report"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$MODE" = "chain" ] ; then
|
||||||
|
if [ "$ONLINE" = "0" ] ; then
|
||||||
|
echo 'You have selected the "chain" mode.'
|
||||||
|
echo 'All available modes will be tried (in that order): patch, report, context, org'
|
||||||
fi
|
fi
|
||||||
MODE="chain"
|
|
||||||
elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
|
elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
|
||||||
FLAGS="$FLAGS -no_show_diff"
|
FLAGS="$FLAGS -no_show_diff"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue