Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2001 03:21:13 -0800
From:      Gregory Sutter <gsutter@zer0.org>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        j mckitrick <jcm@FreeBSD-uk.eu.org>, freebsd-stable@freebsd.org
Subject:   Re: cvs mailing list for RELENG_4 only?
Message-ID:  <20010309032113.O45600@klapaucius.zer0.org>
In-Reply-To: <20010309101906.E710@tao.org.uk>; from joe@tao.org.uk on Fri, Mar 09, 2001 at 10:19:07AM %2B0000
References:  <20010309032337.A53963@dogma.freebsd-uk.eu.org> <20010309101906.E710@tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-03-09 10:19 +0000, Josef Karthauser <joe@tao.org.uk> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010309032113.O45600>