Fix broken section IDs in generated license documentation in buck build
When running `buck build release`, the following warnings are emitted:
asciidoc: WARNING: licenses.txt: line 51: missing section: [[Apache1.1]]
asciidoc: WARNING: licenses.txt: line 111: missing section: [[Apache2.0]]
asciidoc: WARNING: licenses.txt: line 365: missing section: [[MPL1.1]]
There are two causes of these warnings.
Firstly, the ID for the Apache 2.0 section in the page is actually
named "apache2" but the generated html is referring to "Apache2.0".
Secondly, asciidoc does not properly generate the HTML if the ID name
contains dots.
Change the name of the Apache 2.0 section ID to "Apache2_0" and modify
the license generation script to replace dots with underscores in the
section names.
Change-Id: I8ad87d3f8cbd6af5512c0f25079154e5c7982565
2 files changed