mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
2f75bd73c3
commit
43f187a50c
3 changed files with 29 additions and 15 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue