From owner-freebsd-ports Sat Mar 18 5:20:34 2000 Delivered-To: freebsd-ports@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id A555837B61B for ; Sat, 18 Mar 2000 05:20:31 -0800 (PST) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id OAA23136; Sat, 18 Mar 2000 14:18:13 +0100 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id OAA43761; Sat, 18 Mar 2000 14:15:36 +0100 (CET) Date: Sat, 18 Mar 2000 14:15:36 +0100 (CET) From: Juergen Lock Message-Id: <200003181315.OAA43761@saturn.kn-bremen.de> To: mark@dogma.freebsd-uk.eu.org Subject: extracting patches from query-pr.cgi (was: Re: xmms-1.0.1 "runs slow") X-Newsgroups: local.list.freebsd.ports In-Reply-To: <20000215185552.A336@marder-1> References: <20000213231258.B826@marder-1> <20000214003909.B328@marder-1> <20000213180447.C9728@norn.ca.eu.org> <20000214182907.B333@marder-1> <86900n8k86.wl@dolphin.be.to> <20000215000551.A89205@marder-1> <20000214162015.B1274@norn.ca.eu.org> Organization: home Cc: Chris Piazza , ports@FreeBSD.ORG, Brian Sletten Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <20000215185552.A336@marder-1> you write: >BTW, what is the best way to grab patches out of PRs? When I saved the >page from Netscape it saved the markup for symbols like ``&'' and >``>''. I tried again using w3m, but that screwed the whitespace so >that I had to use ``patch -l''. Err, you _don't_ want to do that (patch -l). Instead save the page as source (html) or just do fetch http://www.freebsd.org/cgi/query-pr.cgi\?pr=whatever then run the file you saved/fetched through perl -pe 'if (($ln = (/
/ .. /<\/pre>/)) && $ln gt 1 && !($ln =~ /E0/)) {s/[^<]*<\/A>/$1/g;s/&/&/g;s/<//g;} else {s/^/#/};'

What you then get you can feed straight to patch(1), it should ignore
everything before the first Index: line.

 Well, looking at www/en/cgi/query-pr.cgi again i see i forgot `PR'
links which it also generates (see sub fixline), if you add those please
post the fixed version.

 Anyway i guess the `real' solution would be to just add some text-only
option to query-pr.cgi...

 HTH,
-- 
Juergen Lock 
(remove dot foo from address to reply)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message