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