Make sure asciidoc uses unix line endings in generated HTML.

The difference in the size of gerrit-2.4.1.war and gerrit-2.4.2.war is
about 50K. Main reason is that the HTML produced by asciidoc in
2.4.1 contains windows line endings while in 2.4.2 it contains unix line
endings.

Use an explicit asciidoc attribute to make sure the produced HTML will
always contain unix line endings.  This will help in producing build
results that are better comparable by size.

Besides the line endings, there are actually some more differences in
the produced HTML files.  They probably come from usage of different
version of asciidoc for producing 2.4.1 and 2.4.2.  We may want to agree
on, and enforce, using a particular asciidoc version for producing
Gerrit releases.

Change-Id: Iee938d3aeaa266e72b62241778855aaaa3409ef6
This commit is contained in:
Sasa Zivkov 2012-06-27 10:00:46 +02:00
parent a00d091f39
commit 6f0d90c464

View File

@ -76,6 +76,7 @@ $(DOC_HTML): %.html : %.txt
@$(ASCIIDOC) -a toc \
-a data-uri \
-a 'revision=$(REVISION)' \
-a 'newline=\n' \
-b xhtml11 \
-f asciidoc.conf \
$(ASCIIDOC_EXTRA) \