Date: Sat, 18 Mar 2000 14:15:36 +0100 (CET) From: Juergen Lock <nox@jelal.kn-bremen.de> To: mark@dogma.freebsd-uk.eu.org Cc: Chris Piazza <cpiazza@jaxon.net>, ports@FreeBSD.ORG, Brian Sletten <bsletten@nova.org> Subject: extracting patches from query-pr.cgi (was: Re: xmms-1.0.1 "runs slow") Message-ID: <200003181315.OAA43761@saturn.kn-bremen.de> In-Reply-To: <20000215185552.A336@marder-1> References: <20000213231258.B826@marder-1> <Pine.GSO.4.21.0002131815290.24230-100000@members.fcac.org> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
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>/ .. /<\/pre>/)) && $ln gt 1 && !($ln =~ /E0/)) {s/<A HREF="([^"]*)">[^<]*<\/A>/$1/g;s/&/&/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 <nox.foo@jelal.kn-bremen.de> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003181315.OAA43761>