From owner-freebsd-stable Fri Mar 9 3:21:21 2001 Delivered-To: freebsd-stable@freebsd.org Received: from klapaucius.zer0.org (klapaucius.zer0.org [204.152.186.45]) by hub.freebsd.org (Postfix) with ESMTP id C6EE637B718 for ; Fri, 9 Mar 2001 03:21:17 -0800 (PST) (envelope-from gsutter@zer0.org) Received: by klapaucius.zer0.org (Postfix, from userid 1001) id A647D239A53; Fri, 9 Mar 2001 03:21:13 -0800 (PST) Date: Fri, 9 Mar 2001 03:21:13 -0800 From: Gregory Sutter To: Josef Karthauser Cc: j mckitrick , freebsd-stable@freebsd.org Subject: Re: cvs mailing list for RELENG_4 only? Message-ID: <20010309032113.O45600@klapaucius.zer0.org> References: <20010309032337.A53963@dogma.freebsd-uk.eu.org> <20010309101906.E710@tao.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010309101906.E710@tao.org.uk>; from joe@tao.org.uk on Fri, Mar 09, 2001 at 10:19:07AM +0000 Organization: Zer0 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2001-03-09 10:19 +0000, Josef Karthauser wrote: > On Fri, Mar 09, 2001 at 03:24:02AM +0000, j mckitrick wrote: > > > > I recently heard that there might be filtered mailing lists out there that > > only contain cvs entries that are being applied to -stable. Has anyone seen > > these? How can I subscribe? It seems that might be a good complement to > > following -stable as well. > > There isn't such a list currently, but for a while every commit to > cvs-all has contained a header that you can filter on for the branch > that you're interested in: > > X-FreeBSD-CVS-Branch: RELENG_4,HEAD > > This contains a list of all the branches affected by that commit so > you can make a procmail rule like: > > :0: > * ^X-FreeBSD-CVS-Branch:.*RELENG_4.* > my.releng4.mailbox Here are some procmail recipes that: 1. Tag commits with a header corresponding to their portion of the tree (src, ports, etc). 2. Add URLs to the CVSWeb interface for each file changed. 3. Eliminate duplicate messages. 4. Put doc commits into the doc mailbox. 5. Put RELENG_4 commits into the stable mailbox. 6. Put ports commits into the ports mailbox. 7. Put each mailing list's messages into its own mailbox. HTH. ===== # 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-Za-z]+\/.+)/http\:\/\/www.FreeBSD.ORG\/cgi\/cvsweb\.cgi\/\1/; $l = "$l$r"; } print "$_"; } print "$l"; ' :0 bf | perl -Te "${PERLSCRIPT}" } # freebsd lists BSDLISTS="(advocacy|announce|arch|chat|current|cvs-all|doc|emulation|hackers|hardware|ipfw|isp|jobs|mobile|mozilla|net|ports|ppc|qa|questions|security|small|smp|stable)" :0 * $ ^${FROM}freebsd.org { :0 Wh : freebsd.lock | formail -D 32768 $PMDIR/bsd.cache :0 : * ^X-FreeBSD-CVS-Tree: doc bsd/doc :0 : * ^Subject:[ ]*cvs commit: * ^X-FreeBSD-CVS-Branch:[ ]*RELENG_4 bsd/stable :0 : * ^X-FreeBSD-CVS-Tree: ports bsd/ports :0 : * $ ^Sender:[ ]*owner-(freebsd-)?\/$BSDLISTS | formail -i "X-Fkey: freebsd-$MATCH" >> bsd/$MATCH } ===== Greg -- Gregory S. Sutter Computing is a terminal addiction. mailto:gsutter@zer0.org http://www.zer0.org/~gsutter/ hkp://wwwkeys.pgp.net/0x845DFEDD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message