3 # Perform sanity checks on documentation and build it.
8 test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
9 gem
install asciidoctor
14 # Build docs with AsciiDoc
15 make doc
> >(tee stdout.log
) 2> >(tee stderr.log
>&2)
17 test -s Documentation
/git.html
18 test -s Documentation
/git.xml
19 test -s Documentation
/git
.1
20 grep '<meta name="generator" content="AsciiDoc ' Documentation
/git.html
22 rm -f stdout.log stderr.log
23 check_unignored_build_artifacts
25 # Build docs with AsciiDoctor
27 make USE_ASCIIDOCTOR
=1 doc
> >(tee stdout.log
) 2> >(tee stderr.log
>&2)
28 sed '/^GIT_VERSION = / d' stderr.log
30 test -s Documentation
/git.html
31 grep '<meta name="generator" content="Asciidoctor ' Documentation
/git.html
33 rm -f stdout.log stderr.log
34 check_unignored_build_artifacts