Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / mantools / hchangered
blob044f2dbaedc1950802b6c02b47461156ad19680b
1 #!/bin/sh
3 # Usage: hchangered oldfile newfile
5 # hchangered - crude tool to red-color changes in HTML text. Text is
6 # also underlined so it shows on monochrome printers.
8 # Bugs: does not red-color text inside tables. Fascist software may
9 # complain about tags being out of order.
11 diff -e $1 $2 | (sed -n -e '
12 /[ac]$/{
15 <font color="red"><u>
16 : loop
18 /^\.$/b done1
20 b loop
21 : done1
23 </u></font>\
27 /d$/{
30 <font color="red"><u>[DELETED]</u></font>\
35 '; echo '1,$p') | ed - $1 | perl -e '
36 $buf = join("", <STDIN>);
37 $buf =~ s/pre>\s+<font/pre><font/g;
38 $buf =~ s/font>\s+<\/pre/font><\/pre/g;
39 print $buf;