]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Add support for the C variable in the coccicheck script
authorNicolas Palix <npalix@diku.dk>
Sun, 13 Jun 2010 07:26:34 +0000 (09:26 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 28 Jun 2010 14:44:53 +0000 (16:44 +0200)
commit1e9dea2a60b71ea7a9ac2936bed920d39f662e52
treedf3696ae510c2e4edbc80123dbd73abbc7169c28
parent6ff21517c001f38b02393ad9dc92decbaee209fa
Add support for the C variable in the coccicheck script

This patch makes it possible to use the Coccinelle checker with the C
variable of the build system. To check only newly edited code, the
following command may be used:

'make C={1,2} CHECK="scripts/coccicheck"'

This runs every semantic patch in scripts/coccinelle by default. The
COCCI variable may additionally be used to only apply a single
semantic patch.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccicheck