Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Updated cocci README.
Alexandre Perrin committed 12 years ago
commit d9142226b070071e4ee60a6dcee50202c97cb480
parent 887b20a
2 files changed +29 -24
added tests/cocci/README.md
@@ -0,0 +1,29 @@
+
> Coccinelle (http://coccinelle.lip6.fr/) is a program matching and
+
> transformation engine which provides the > language SmPL (Semantic Patch
+
> Language) for specifying desired matches and > transformations in C code.
+

+
.cocci files in this directory are copied (and some adapted) from
+
http://coccinelle.lip6.fr/rules/. the pkg directory contains .cocci files
+
written for pkg.
+

+
Installation
+
============
+

+
port:
+

+
	# make -C /usr/ports/devel/coccinelle install clean
+

+
package:
+

+
	# pkg install coccinelle
+

+
Usage
+
=====
+
From the pkg's source root (use _libpkg_ or _src_ as `$DIR`):
+

+
	% spatch -I. -I /usr/include -I /usr/local/include -I libpkg -I src \
+
		-I external/expat/lib -I external/libyaml/include \
+
		-I external/libucl/include -I external/uthash \
+
		-I external/sqlite -I external/libelf \
+
		-in_place \
+
        -sp_file ./tests/cocci/$TESTFILE.cocci -dir $DIR
deleted tests/cocci/README.mkd
@@ -1,24 +0,0 @@
-
> Coccinelle (http://coccinelle.lip6.fr/) is a program matching and
-
> transformation engine which provides the > language SmPL (Semantic Patch
-
> Language) for specifying desired matches and > transformations in C code.
-

-
.cocci files in this directory are copied (and some adapted) from
-
http://coccinelle.lip6.fr/rules/. the pkg directory contains .cocci
-
fileswritten for pkg.
-

-
Installation
-
============
-

-
port:
-
    # make -C /usr/ports/devel/coccinelle install clean
-
package:
-
    # pkg install coccinelle
-

-
Usage
-
=====
-
From the pkg's source root:
-
    % spatch -I /usr/include -I /usr/local/include -I -I libpkg -I pkg \
-
        external/expat/lib -I external/libyaml/include \
-
        -I external/libucl/include -I external/uthash \
-
        -dir pkg -dir libpkg -in_place \
-
        -sp_file ./tests/cocci/$TESTFILE.cocci