aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coccicheck11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index 1a49d1c7ecfe..f8f15a269e1a 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -2,6 +2,15 @@
2 2
3SPATCH="`which ${SPATCH:=spatch}`" 3SPATCH="`which ${SPATCH:=spatch}`"
4 4
5# The verbosity may be set by the environmental parameter V=
6# as for example with 'make V=1 coccicheck'
7
8if [ -n "$V" -a "$V" != "0" ]; then
9 VERBOSE=1
10else
11 VERBOSE=0
12fi
13
5if [ "$C" = "1" -o "$C" = "2" ]; then 14if [ "$C" = "1" -o "$C" = "2" ]; then
6 ONLINE=1 15 ONLINE=1
7 16
@@ -55,7 +64,7 @@ coccinelle () {
55# 64#
56# $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null 65# $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null
57 66
58 if [ "$ONLINE" = "0" ] ; then 67 if [ $VERBOSE -ne 0 ] ; then
59 68
60 FILE=`echo $COCCI | sed "s|$srctree/||"` 69 FILE=`echo $COCCI | sed "s|$srctree/||"`
61 70