]> xenbits.xensource.com Git - libvirt.git/commit
apibuild: Don't include the Copyright in the <description> of a module
authorPeter Krempa <pkrempa@redhat.com>
Thu, 3 Nov 2022 10:07:12 +0000 (11:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 3 Nov 2022 13:11:22 +0000 (14:11 +0100)
commit1bea629cbce7d6d0994ec4b66ae72e00f915e992
tree4e8fe41f19a7aa1e91bbc31933d77b55ee921fd2
parented2109d2720af25592acb999475d510ca7c36479
apibuild: Don't include the Copyright in the <description> of a module

When building the top level description from a header file the
'parseTopComment' method of the 'CParser' would include all trailing
lines into the <description> field. This was designed to concatenate
multi-line descriptions, but unfortunately in all cases also included
the Copyright statement which followed.

Explicitly end the scanning of the header on a line which starts with
'Copyright (C)' and truncate the spaces from the end of the last item.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
scripts/apibuild.py