Release coccinelle-0.1
[bpt/coccinelle.git] / readme.txt
CommitLineData
34e49164
C
1Coccinelle allows programmers to easily write some complex
2style-preserving source-to-source transformations on C source code,
3like for instance to perform some refactorings.
4
5To install Coccinelle from its source, see the instructions in install.txt.
6For more information on Coccinelle see the files in the docs/ directory.
7
8Once you have installed Coccinelle (either from the source or from one
9of the binary form available on the Coccinelle website), You may have
10to setup a few environment variables so that the Coccinelle program
11know where to find its configuration files.
12For bash do:
13
14 source env.sh
15
16For tcsh do:
17
18 source env.csh
19
20
21
22You can then test coccinelle with:
23
24 spatch -sp_file demos/simple.cocci demos/simple.c
25
26If you downloaded the bytecode version of spatch you may first
27have to install OCaml (which contains the 'ocamlrun' bytecode interpreter,
28the equivalent of 'java', the Java virtual machine, but for OCaml) and then do:
29
30 ocamlrun spatch -sp_file demos/simple.cocci demos/simple.c
31