Date: Mon, 7 Aug 2000 17:07:36 -0700 From: Gregory Sutter <gsutter@zer0.org> To: Warner Losh <imp@village.org> Cc: Ade Lovett <ade@FreeBSD.org>, Jonathan Lemon <jlemon@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/games/fortune/datfiles fortunes Message-ID: <20000807170736.A98441@klapaucius.zer0.org> In-Reply-To: <200008072226.QAA35123@harmony.village.org>; from imp@village.org on Mon, Aug 07, 2000 at 04:26:35PM -0600 References: <20000807171632.B514@FreeBSD.org> <200008072049.NAA00374@freefall.freebsd.org> <200008072201.QAA34941@harmony.village.org> <20000807171632.B514@FreeBSD.org> <200008072226.QAA35123@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-08-07 16:26 -0600, Warner Losh <imp@village.org> wrote: > In message <20000807171632.B514@FreeBSD.org> Ade Lovett writes: > : http://www.FreeBSD.org/cgi/cvsweb.cgi/src/games/fortune/datfiles/fortunes.diff?r1=1.41&r2=1.42 > > I'd love to see links like this in the commit message :-) Here's the FreeBSD part of my procmail recipe set. hoek wrote the perl script that adds the cvsweb URLs. ==== BSDLISTS="(advocacy|announce|arch|chat|current|cvs-committers|doc|emulation|hackers|hardware|ipfw|isp|jobs|mobile|mozilla|net|ports|ppc|qa|questions|security|small|smp|stable)" # tag FreeBSD commit messages appropriately :0 * ^Sender:[ ]*owner-(freebsd-)?cvs-(all|committers)@FreeBSD.ORG * ^Subject: cvs commit: { # tag with the correct portion of the tree :0 f * ^Subject: cvs commit: \/(CVSROOT|doc|ports|src|www) | formail -i "X-FreeBSD-CVS-Tree: $MATCH" # add cvsweb urls to the bottom of each commit # courtesy hoek@freebsd.org PERLSCRIPT=' while (<>) { if (/^\s+(\d+\.)+\d+\s+\+\d+ \-\d+\s+/) { $r = $_; $r =~+s/.*?([a-z]+\/.+)/http\:\/\/www.FreeBSD.ORG\/cgi\/cvsweb\.cgi\/\1/; $l = "$l$r"; } print "$_"; } print "$l"; ' :0 bf | perl -Te "${PERLSCRIPT}" } :0 * $ ^${FROM}freebsd.org { :0 Wh : freebsd.lock | formail -D 32768 $PMDIR/bsd.cache :0 : * ^X-FreeBSD-CVS-Tree: doc bsd/doc :0 : * ^X-FreeBSD-CVS-Tree: ports bsd/ports :0 : * $ ^Sender:[ ]*owner-(freebsd-)?\/$BSDLISTS | formail -i "X-Fkey: freebsd-$MATCH" >> bsd/$MATCH } :0 : * Mailing-List:.*config-mgmt@egroups.com | formail -i "X-Fkey: config-mgmt" >> bsd/config-mgmt :0 : * Mailing-List:.*usb-bsd@egroups.com | formail -i "X-Fkey: usb-bsd" >> bsd/usb :0 : * Mailing-List:.*BSD_Corporate@egroups.com | formail -i "X-Fkey: bsd-corporate" >> bsd/corporate ==== Greg -- Gregory S. Sutter Madness takes its toll. mailto:gsutter@zer0.org Please have exact change. http://www.zer0.org/~gsutter/ PGP DSS public key 0x40AE3052 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000807170736.A98441>