From: Eric Blake <eblake@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH for 2.10 0/8] docs: fix broken paths
Date: Fri, 28 Jul 2017 13:34:11 -0500 [thread overview]
Message-ID: <9bf5ddf1-3b81-ceb3-66a0-1d3267e7cae4@redhat.com> (raw)
In-Reply-To: <20170728012542.29975-1-f4bug@amsat.org>
[-- Attachment #1.1: Type: text/plain, Size: 1590 bytes --]
On 07/27/2017 08:25 PM, Philippe Mathieu-Daudé wrote:
> Hi, following Cleber Rosa example I cleaned more invalid references.
>
> Eric said this can wait 2.11, however these patches don't change any code
> generated, I think the 2.10 users deserve an up-to-date doc :p
I think what I said was: this doesn't change code and doc updates are
find during freeze, so this is a GOOD candidate for 2.10; but if it
misses 2.10, slipping to 2.11 doesn't hurt. (If I didn't say that, it's
what I should have done). But you caught on to my intention, even if in
the process it sounds like I was asking you to wait.
>
> I used the following command (and consider include it in some CI test job):
>
> $ git grep docs/ \
> | sed -ne "s/.* \(docs[^ :)}\"\']*\).*/\1/p" \
> | sed -e 's/\(.*\)\.$/\1/p' | sort -u | while read p;do
> ls -ld $p 1>/dev/null
Wait. What? 'ls -ld' with stdout sent to /dev/null? (I never cease to
be amazed at the random shell constructs that people come up with). I
guess you are just trying to check for file existence, by going off of
the stderr droppings from ls? 'ls -d' is less effort than 'ls -ld'; and
if all you care about is stderr messages, spawning one ls per filename
is much slower than just doing it wholesale via xargs to minimize ls calls:
git grep ... | sort -u | xargs ls -d >/dev/null
But then again, efficiency in generating the list of problems isn't a
bottleneck.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
prev parent reply other threads:[~2017-07-28 18:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 1:25 [Qemu-trivial] [PATCH for 2.10 0/8] docs: fix broken paths Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 1/8] docs: fix broken paths to docs/interop dir Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 2/8] docs: fix broken paths to docs/interop/qcow2.txt Philippe Mathieu-Daudé
2017-07-28 9:13 ` Kevin Wolf
2017-07-28 18:35 ` [Qemu-trivial] [Qemu-devel] " Eric Blake
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 3/8] docs: fix broken paths to docs/devel/qapi-code-gen.txt Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 4/8] docs: fix broken paths to docs/devel/atomics.txt Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 5/8] docs: fix broken paths to docs/devel/tracing.txt Philippe Mathieu-Daudé
2017-07-28 12:11 ` [Qemu-trivial] [Qemu-devel] " Stefan Hajnoczi
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 6/8] docs: fix broken paths to docs/config/ich9-ehci-uhci.cfg Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 7/8] docs: fix broken paths to docs/specs/ivshmem-spec.txt Philippe Mathieu-Daudé
2017-07-28 1:25 ` [Qemu-trivial] [PATCH for 2.10 8/8] docs: fix broken paths to docs/spin/ Philippe Mathieu-Daudé
2017-07-28 1:43 ` [Qemu-trivial] [PATCH for 2.10 0/8] docs: fix broken paths Philippe Mathieu-Daudé
2017-07-28 11:20 ` Michael Tokarev
2017-07-28 12:01 ` [Qemu-trivial] [Qemu-devel] " Paolo Bonzini
2017-07-28 18:34 ` Eric Blake [this message]
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=9bf5ddf1-3b81-ceb3-66a0-1d3267e7cae4@redhat.com \
--to=eblake@redhat.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.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).