From: Joe Perches <joe@perches.com>
To: Jonathan Corbet <corbet@lwn.net>, Bjorn Helgaas <helgaas@kernel.org>
Cc: "Alexander A. Klimov" <grandmaster@al2klimov.de>,
bhelgaas@google.com, robh+dt@kernel.org, tglx@linutronix.de,
mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com,
kishon@ti.com, lorenzo.pieralisi@arm.com, hongxing.zhu@nxp.com,
l.stach@pengutronix.de, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-imx@nxp.com, m-karicheri2@ti.com,
songxiaowei@hisilicon.com, wangbinghui@hisilicon.com,
amurray@thegoodpenguin.co.uk,
sathyanarayanan.kuppuswamy@linux.intel.com, hkallweit1@gmail.com,
rafael.j.wysocki@intel.com, rdunlap@infradead.org,
linux-pci@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: PCI: Replace lkml.org, spinics, gmane with lore.kernel.org
Date: Thu, 02 Jul 2020 13:19:12 -0700 [thread overview]
Message-ID: <66df632598aeafc48ecb15434e3d997438414e7f.camel@perches.com> (raw)
In-Reply-To: <707b05c95ae3292a6b9eb04e146b1f1f6d52c125.camel@perches.com>
On Tue, 2020-06-30 at 22:35 -0700, Joe Perches wrote:
> On Tue, 2020-06-30 at 14:04 -0600, Jonathan Corbet wrote:
> > On Tue, 30 Jun 2020 13:09:17 -0500
> > Bjorn Helgaas <helgaas@kernel.org> wrote:
> >
> > > PCI: Replace lkml.org, spinics, gmane with lore.kernel.org
> > >
> > > The lkml.org, spinics.net, and gmane.org archives are not very reliable
> > > and, in some cases, not even easily accessible. Replace links to them with
> > > links to lore.kernel.org, the archives hosted by kernel.org.
> > >
> > > I found the gmane items via the Wayback Machine archive at
> > > https://web.archive.org/.
> >
> > Heh...now *that* sounds like a project that could generate a lot of churn,
> > and perhaps even be worth it. Settling on a consistent (and working!)
> > email archive would improve the docs quite a bit. I'll add that to the
> > list...
>
> At least for the lkml.org/lkml links
> here's the current -next diff done by a
> script that looks at the message-id of
> each lkml.org link.
btw: if you want to run the script for specific
paths, here's the script.
You could run it using:
bash convert_lkml_to_lore.sh <path>
---
$ cat convert_lkml_to_lore.sh
#!/bin/bash
cvt_lkml_to_lore ()
{
tmpfile=$(mktemp ./.cvt_links.XXXXXXX)
header=$(echo $1 | sed 's@/lkml/@/lkml/headers/@')
wget -qO - $header > $tmpfile
if [[ $? == 0 ]] ; then
link=$(grep -i '^Message-Id:' $tmpfile | head -1 | \
sed -r -e 's/^\s*Message-Id:\s*<\s*//' -e 's/\s*>\s*$//' -e 's@^@https://lore.kernel.org/r/@')
# echo "testlink: $link"
if [ -n "$link" ] ; then
wget -qO - $link > /dev/null
if [[ $? == 0 ]] ; then
echo $link
fi
fi
fi
rm -f $tmpfile
}
git grep -P -o "\bhttps?://(?:www.)?lkml.org/lkml[\/\w]+" $@ |
while read line ; do
echo $line
file=$(echo $line | cut -f1 -d':')
link=$(echo $line | cut -f2- -d':')
newlink=$(cvt_lkml_to_lore $link)
if [[ -n "$newlink" ]] ; then
sed -i -e "s#\b$link\b#$newlink#" $file
fi
done
next prev parent reply other threads:[~2020-07-02 20:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-27 10:30 [PATCH] Replace HTTP links with HTTPS ones: PCI Alexander A. Klimov
2020-06-30 18:07 ` Bjorn Helgaas
2020-06-30 18:09 ` PCI: Replace lkml.org, spinics, gmane with lore.kernel.org Bjorn Helgaas
2020-06-30 20:01 ` Bjorn Helgaas
2020-06-30 20:04 ` Jonathan Corbet
2020-07-01 5:35 ` Joe Perches
2020-07-02 20:19 ` Joe Perches [this message]
2021-01-10 20:41 ` [PATCH] Documentation: Replace lkml.org links with lore Joe Perches
2021-01-11 19:48 ` Jonathan Corbet
2021-02-10 7:28 ` Kees Cook
2021-02-10 7:41 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66df632598aeafc48ecb15434e3d997438414e7f.camel@perches.com \
--to=joe@perches.com \
--cc=amurray@thegoodpenguin.co.uk \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=grandmaster@al2klimov.de \
--cc=helgaas@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=hongxing.zhu@nxp.com \
--cc=hpa@zytor.com \
--cc=kernel@pengutronix.de \
--cc=kishon@ti.com \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=m-karicheri2@ti.com \
--cc=mingo@redhat.com \
--cc=rafael.j.wysocki@intel.com \
--cc=rdunlap@infradead.org \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=shawnguo@kernel.org \
--cc=songxiaowei@hisilicon.com \
--cc=tglx@linutronix.de \
--cc=wangbinghui@hisilicon.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).