cvsweb procmail filter
Eirik Nygaard
eirikn at kerneled.com
Sat Nov 1 05:26:47 PST 2003
I have modified the script that was made for FreeBSD so a link to each of
the modified filen in a commit mail will be added to the bottom of the
mail. Just in case someone else would like it I have attached it to this
mail.
--
Eirik Nygaard
eirikn at xxxxxxxxxxxx
:0
* ^To: commits at xxxxxxxxxxxxxxxxxxxxxxx
* ^Subject: cvs commit:
{
PERLSCRIPT='
while (<>) {
if (/^\s+[\d\.]+\s+\+\d+\s+\-\d+\s+(.*)\s+\((dead|new)\)/) {
$l .= "http\:\/\/www\.dragonflybsd\.org\/cgi\-bin\/cvsweb\.cgi\/$1\n";
} elsif (/^\s+([\d\.]+)\.(\d+)\s+\+\d+\s+\-\d+\s+(.*)/) {
$l .= "http\:\/\/www\.dragonflybsd\.org\/cgi\-bin\/cvsweb\.cgi\/$3\.diff" .
"\?\&r1\=$1\." . "\&r2\=$1\.$2\&f\=h\n";
}
print;
}
print "$l\n" if ($l);
'
:0 bf
| perl -Te "${PERLSCRIPT}"
}
Attachment:
pgp00000.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00000.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20031101/220c3ce8/attachment-0018.obj>
More information about the Submit
mailing list