* [Qemu-devel] [PATCH] hxtool: remove dead -q option
@ 2017-07-07 15:46 Paolo Bonzini
2017-07-07 15:56 ` Eric Blake
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Paolo Bonzini @ 2017-07-07 15:46 UTC (permalink / raw)
To: qemu-devel; +Cc: marcandre.lureau, qemu-trivial
This was used to extract .txt documentation for QMP. This was
changed to use the QAPI schema instead, so zap it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
scripts/hxtool | 46 +---------------------------------------------
1 file changed, 1 insertion(+), 45 deletions(-)
diff --git a/scripts/hxtool b/scripts/hxtool
index 5468cd7782..1e2c97c5e6 100644
--- a/scripts/hxtool
+++ b/scripts/hxtool
@@ -7,7 +7,7 @@ hxtoh()
case $str in
HXCOMM*)
;;
- STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1))
+ STEXI*|ETEXI*) flag=$(($flag^1))
;;
*)
test $flag -eq 1 && printf "%s\n" "$str"
@@ -45,12 +45,6 @@ hxtotexi()
fi
flag=0
;;
- SQMP*|EQMP*)
- if test $flag -eq 1 ; then
- printf "line %d: syntax error: expected ETEXI, found '%s'\n" "$line" "$str" >&2
- exit 1
- fi
- ;;
DEFHEADING*)
print_texi_heading "$(expr "$str" : "DEFHEADING(\(.*\))")"
;;
@@ -65,47 +59,9 @@ hxtotexi()
done
}
-hxtoqmp()
-{
- IFS=
- flag=0
- line=1
- while read -r str; do
- case "$str" in
- HXCOMM*)
- ;;
- SQMP*)
- if test $flag -eq 1 ; then
- printf "line %d: syntax error: expected EQMP, found '%s'\n" "$line" "$str" >&2
- exit 1
- fi
- flag=1
- ;;
- EQMP*)
- if test $flag -ne 1 ; then
- printf "line %d: syntax error: expected SQMP, found '%s'\n" "$line" "$str" >&2
- exit 1
- fi
- flag=0
- ;;
- STEXI*|ETEXI*)
- if test $flag -eq 1 ; then
- printf "line %d: syntax error: expected EQMP, found '%s'\n" "$line" "$str" >&2
- exit 1
- fi
- ;;
- *)
- test $flag -eq 1 && printf '%s\n' "$str"
- ;;
- esac
- line=$((line+1))
- done
-}
-
case "$1" in
"-h") hxtoh ;;
"-t") hxtotexi ;;
-"-q") hxtoqmp ;;
*) exit 1 ;;
esac
--
2.13.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] hxtool: remove dead -q option
2017-07-07 15:46 [Qemu-devel] [PATCH] hxtool: remove dead -q option Paolo Bonzini
@ 2017-07-07 15:56 ` Eric Blake
2017-07-11 9:36 ` Stefan Hajnoczi
2017-07-11 14:43 ` Michael Tokarev
2 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2017-07-07 15:56 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel; +Cc: qemu-trivial, marcandre.lureau
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
On 07/07/2017 10:46 AM, Paolo Bonzini wrote:
> This was used to extract .txt documentation for QMP. This was
> changed to use the QAPI schema instead, so zap it.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> scripts/hxtool | 46 +---------------------------------------------
> 1 file changed, 1 insertion(+), 45 deletions(-)
Fun diffstat!
Reviewed-by: Eric Blake <eblake@redhat.com>
--
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: 604 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] hxtool: remove dead -q option
2017-07-07 15:46 [Qemu-devel] [PATCH] hxtool: remove dead -q option Paolo Bonzini
2017-07-07 15:56 ` Eric Blake
@ 2017-07-11 9:36 ` Stefan Hajnoczi
2017-07-11 14:43 ` Michael Tokarev
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2017-07-11 9:36 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, qemu-trivial, marcandre.lureau
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
On Fri, Jul 07, 2017 at 05:46:46PM +0200, Paolo Bonzini wrote:
> This was used to extract .txt documentation for QMP. This was
> changed to use the QAPI schema instead, so zap it.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> scripts/hxtool | 46 +---------------------------------------------
> 1 file changed, 1 insertion(+), 45 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] hxtool: remove dead -q option
2017-07-07 15:46 [Qemu-devel] [PATCH] hxtool: remove dead -q option Paolo Bonzini
2017-07-07 15:56 ` Eric Blake
2017-07-11 9:36 ` Stefan Hajnoczi
@ 2017-07-11 14:43 ` Michael Tokarev
2 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2017-07-11 14:43 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel; +Cc: qemu-trivial, marcandre.lureau
07.07.2017 18:46, Paolo Bonzini wrote:
> This was used to extract .txt documentation for QMP. This was
> changed to use the QAPI schema instead, so zap it.
Applied to -trivial, thanks!
/mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-11 14:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 15:46 [Qemu-devel] [PATCH] hxtool: remove dead -q option Paolo Bonzini
2017-07-07 15:56 ` Eric Blake
2017-07-11 9:36 ` Stefan Hajnoczi
2017-07-11 14:43 ` Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.