2017-04-26 19:15:44 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-05-04 08:38:36 +00:00
|
|
|
#
|
|
|
|
# Perform sanity checks on documentation and build it.
|
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
make check-builtins
|
|
|
|
make check-docs
|
|
|
|
|
2017-04-11 08:33:07 +00:00
|
|
|
# Build docs with AsciiDoc
|
2017-04-26 19:15:44 +00:00
|
|
|
make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
|
|
|
|
! test -s stderr.log
|
2016-05-04 08:38:36 +00:00
|
|
|
test -s Documentation/git.html
|
|
|
|
test -s Documentation/git.xml
|
|
|
|
test -s Documentation/git.1
|
2017-04-11 08:33:07 +00:00
|
|
|
grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
|
|
|
|
|
|
|
|
# Build docs with AsciiDoctor
|
|
|
|
make clean
|
2017-04-26 19:15:44 +00:00
|
|
|
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
|
|
|
|
sed '/^GIT_VERSION = / d' stderr.log
|
|
|
|
! test -s stderr.log
|
2017-04-11 08:33:07 +00:00
|
|
|
test -s Documentation/git.html
|
|
|
|
grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
|