diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-04 13:50:37 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-16 17:52:35 +0100 |
commit | 43f187a50cc7184584cde190ebebacf0c81ec7da (patch) | |
tree | ba34abacc287c1aa57d0ed61a73ca4bed8cf6bba /scripts | |
parent | 2f75bd73c319a1224a64a1b5ad680b1a37ed2d7a (diff) | |
download | qemu-43f187a50cc7184584cde190ebebacf0c81ec7da.zip qemu-43f187a50cc7184584cde190ebebacf0c81ec7da.tar.gz qemu-43f187a50cc7184584cde190ebebacf0c81ec7da.tar.bz2 |
hxtool: emit Texinfo headings as @subsection
Remove the colon, and add it in qemu-options-wrapper.h instead.
The introduction of @subsection also found a case where the table
was not closed and reopened around a heading, so fix it.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hxtool | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/hxtool b/scripts/hxtool index 04f7d7b..5468cd7 100644 --- a/scripts/hxtool +++ b/scripts/hxtool @@ -16,6 +16,13 @@ hxtoh() done } +print_texi_heading() +{ + if test "$*" != ""; then + printf "@subsection %s\n" "$*" + fi +} + hxtotexi() { flag=0 @@ -45,10 +52,10 @@ hxtotexi() fi ;; DEFHEADING*) - printf '%s\n' "$(expr "$str" : "DEFHEADING(\(.*\))")" + print_texi_heading "$(expr "$str" : "DEFHEADING(\(.*\))")" ;; ARCHHEADING*) - printf '%s\n' "$(expr "$str" : "ARCHHEADING(\(.*\),.*)")" + print_texi_heading "$(expr "$str" : "ARCHHEADING(\(.*\),.*)")" ;; *) test $flag -eq 1 && printf '%s\n' "$str" |