coccicheck (9ed07ada0e1476a676450056a20226b88076025e) coccicheck (e0be348e4d6ebd660c9558bcee50f648491cfef6)
1#!/bin/bash
2# Linux kernel coccicheck
3#
4# Read Documentation/dev-tools/coccinelle.rst
5#
6# This script requires at least spatch
7# version 1.0.0-rc11.
8

--- 154 unchanged lines hidden (view full) ---

163}
164
165# You can override heuristics with SPFLAGS, these must always go last
166OPTIONS="$OPTIONS $SPFLAGS"
167
168coccinelle () {
169 COCCI="$1"
170
1#!/bin/bash
2# Linux kernel coccicheck
3#
4# Read Documentation/dev-tools/coccinelle.rst
5#
6# This script requires at least spatch
7# version 1.0.0-rc11.
8

--- 154 unchanged lines hidden (view full) ---

163}
164
165# You can override heuristics with SPFLAGS, these must always go last
166OPTIONS="$OPTIONS $SPFLAGS"
167
168coccinelle () {
169 COCCI="$1"
170
171 OPT=`grep "Option" $COCCI | cut -d':' -f2`
172 REQ=`grep "Requires" $COCCI | cut -d':' -f2 | sed "s| ||"`
171 OPT=`grep "Options:" $COCCI | cut -d':' -f2`
172 REQ=`grep "Requires:" $COCCI | cut -d':' -f2 | sed "s| ||"`
173 REQ_NUM=$(echo $REQ | ${DIR}/scripts/ld-version.sh)
174 if [ "$REQ_NUM" != "0" ] ; then
175 if [ "$SPATCH_VERSION_NUM" -lt "$REQ_NUM" ] ; then
176 echo "Skipping coccinele SmPL patch: $COCCI"
177 echo "You have coccinelle: $SPATCH_VERSION"
178 echo "This SmPL patch requires: $REQ"
179 return
180 fi

--- 77 unchanged lines hidden ---
173 REQ_NUM=$(echo $REQ | ${DIR}/scripts/ld-version.sh)
174 if [ "$REQ_NUM" != "0" ] ; then
175 if [ "$SPATCH_VERSION_NUM" -lt "$REQ_NUM" ] ; then
176 echo "Skipping coccinele SmPL patch: $COCCI"
177 echo "You have coccinelle: $SPATCH_VERSION"
178 echo "This SmPL patch requires: $REQ"
179 return
180 fi

--- 77 unchanged lines hidden ---