]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: fix .hx and .texi disparity
authorJohn Snow <jsnow@redhat.com>
Tue, 9 Apr 2019 21:06:55 +0000 (17:06 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Apr 2019 13:17:10 +0000 (14:17 +0100)
commit13c24edaa742181af8d9c6b027ee366b04de1ea1
tree247586f771ca7f60cf52b23a7c9c91eb1d0b7f0e
parente1be98540ee672ef93292b65a986055512237c35
qemu-img: fix .hx and .texi disparity

It turns out that having options listed in three places continues to be
a bad idea. I'm still toying with the idea of an improved infrastructure
here, but in the meantime, another bandaid.

There are three locations:
(1) .hx file, formatted as texi
(2) .hx file, formatted as human readable.
(3) .texi file, as section headers, formatted as texi.

You can compare the two summaries within the .hx file like so:

Human-readable command summaries:
`./qemu-img --help | grep 'Command syntax' -A14`
Detokenized texi command summaries:
`grep "@item" qemu-img-cmds.hx | sed -E 's|@var\{([^\}]*?)\}|\1|g'`

You can compare the two separate texi summaries like so:

Texi command summaries:
`grep "@item" qemu-img-cmds.hx"`
Texi command headers:
grep -E "@item.*@var" qemu-img.texi | tail -14

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20190409210655.777-1-jsnow@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
qemu-img-cmds.hx
qemu-img.texi