From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27954 invoked from network); 8 Apr 2000 22:10:04 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Apr 2000 22:10:04 -0000 Received: (qmail 1505 invoked by alias); 8 Apr 2000 22:09:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10595 Received: (qmail 1482 invoked from network); 8 Apr 2000 22:09:54 -0000 From: "Bart Schaefer" Message-Id: <1000408220933.ZM22700@candle.brasslantern.com> Date: Sat, 8 Apr 2000 22:09:33 +0000 In-Reply-To: Comments: In reply to Peter Stephenson "Re: PATCH: AIX dep.&doc fix; development guidelines" (Apr 7, 9:04pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: AIX dep.&doc fix; development guidelines MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 7, 9:04pm, Peter Stephenson wrote: } Subject: Re: PATCH: AIX dep.&doc fix; development guidelines } } Bart Schaefer wrote: } > At the time an actual release is done, will the maintainer (hi, Peter) } > please do a sweep of the ChangeLog and convert all the "zefram1XX" etc. } > into the actual article numbers? } } Ouch. Script? Hrm. Aassuming you have a directory ~/zsh-workers/mla/ in which you've unpacked all the tarfiles from the mailing list archive, so that you have files named for the article numbers, it should go something like: ------------------------------------------------------------------- #! /usr/bin/perl open(CHANGELOG, "ChangeLog") or die "can't open ChangeLog"; rename("ChangeLog","ChangeLog.orig") and open(STDOUT, ">ChangeLog") or die "can't rewrite ChangeLog"; chdir("$ENV{'HOME'}/zsh-workers/mla") or die "can't cd to mailing list archive"; while () { if (/^\s+\* \b(\D\w+\B\d+:)/) { open(ARTICLES, "fgrep -l $1 * |" or die "can't grep mailing list archive"; @articles = sort {$b <=> $a} ; close(ARTICLES); $article = unshift @articles; s/$1/$article:/; } } continue { print; } ------------------------------------------------------------------- This picks out the most recent article that references the sequence code, which relies on the last mention of a sequence code like "zefram1" appearing in the actual patch article. If somebody has quoted Zefram's ChangeLog diff in a later article, it'll find that article instead. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com