#!/usr/bin/perl -w use strict; my $rcs2log = "rcs2log ".join(" ",@ARGV); my $have_ul = 0; sub encode { my $foo = shift; $foo =~ s//>/g; $foo =~ s/"/"/g; return $foo; } open(RCS2LOG, "$rcs2log |") || die "$rcs2log: $!"; while() { chomp; next if (/^$/); if (/^(\d\d\d\d-\d+-\d+)\s+(.+)\s(<.+>)$/) { my ($date,$who,$email) = ($1,$2,$3); if ($have_ul) { print "\n"; $have_ul = 0; } $email = encode($email); $email =~ s/@/(at)/g; $email =~ s/\./(dot)/g; print "$date $who $email\n"; } elsif (/^\t\* ([^:]+):(\s*.*)$/) { if (! $have_ul) { print "