From owner-cvs-all Mon Aug 7 17: 7:42 2000 Delivered-To: cvs-all@freebsd.org Received: from klapaucius.zer0.org (klapaucius.zer0.org [204.152.186.45]) by hub.freebsd.org (Postfix) with ESMTP id EB74637B5F1; Mon, 7 Aug 2000 17:07:36 -0700 (PDT) (envelope-from gsutter@zer0.org) Received: by klapaucius.zer0.org (Postfix, from userid 1001) id BBC99239A4C; Mon, 7 Aug 2000 17:07:36 -0700 (PDT) Date: Mon, 7 Aug 2000 17:07:36 -0700 From: Gregory Sutter To: Warner Losh Cc: Ade Lovett , Jonathan Lemon , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/games/fortune/datfiles fortunes Message-ID: <20000807170736.A98441@klapaucius.zer0.org> References: <20000807171632.B514@FreeBSD.org> <200008072049.NAA00374@freefall.freebsd.org> <200008072201.QAA34941@harmony.village.org> <20000807171632.B514@FreeBSD.org> <200008072226.QAA35123@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200008072226.QAA35123@harmony.village.org>; from imp@village.org on Mon, Aug 07, 2000 at 04:26:35PM -0600 Organization: Zer0 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2000-08-07 16:26 -0600, Warner Losh 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