1DIFFPP(1) DIFFPP DIFFPP(1)
2
3
4
6 diffpp - pretty-print diff outputs with GNU enscript
7
8
10 diffpp currentfile < diff-file
11
12
14 Diffpp converts diff(1)-program's output files to a format suitable to
15 be printed with GNU enscript(1). Program annotates the changes with
16 enscript's special escapes so enscript can highlight the modified por‐
17 tions of the file. All changed and added lines are printed with
18 gray-background, deleted lines are marked with minus (`-') characters;
19 diffpp prints one minus character for each deleted line.
20
21
23 The easiest way to use diffpp is to use it as an input filter for
24 enscript. If an input filter is specified for enscript it is used to
25 pre-process the incoming data-stream. Filtering does not alter any
26 header strings or file-timestamps which might be printed on enscript
27 headers; only the incoming data is modified.
28
29
30 enscript -G2re --filter='rcsdiff %s | diffpp %s' *.c *.h
31 Print the changes between current source files and their latest
32 RCS-versions.
33
34 enscript -G2re --filter='diff %s~ %s | diffpp %s' *.c *.h
35 Print changes between source files and the corresponding
36 backup-files.
37
38
40 diff(1), enscript(1)
41
42
44 Markku Rossi <mtr@iki.fi> <http://www.iki.fi/~mtr/>
45
46
47
48DIFFPP Jan 29, 1997 DIFFPP(1)