]>
Commit | Line | Data |
---|---|---|
505ad913 | 1 | #!/usr/bin/env bash |
b98712b9 LS |
2 | # |
3 | # Perform sanity checks on documentation and build it. | |
4 | # | |
5 | ||
c2160f2d | 6 | . ${0%/*}/lib.sh |
657343a6 LS |
7 | |
8 | gem install asciidoctor | |
b98712b9 LS |
9 | |
10 | make check-builtins | |
11 | make check-docs | |
b98712b9 | 12 | |
159e6010 | 13 | # Build docs with AsciiDoc |
505ad913 LS |
14 | make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2) |
15 | ! test -s stderr.log | |
b98712b9 LS |
16 | test -s Documentation/git.html |
17 | test -s Documentation/git.xml | |
18 | test -s Documentation/git.1 | |
159e6010 LS |
19 | grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html |
20 | ||
b92cb86e SG |
21 | rm -f stdout.log stderr.log |
22 | check_unignored_build_artifacts | |
23 | ||
159e6010 LS |
24 | # Build docs with AsciiDoctor |
25 | make clean | |
505ad913 LS |
26 | make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2) |
27 | sed '/^GIT_VERSION = / d' stderr.log | |
28 | ! test -s stderr.log | |
159e6010 LS |
29 | test -s Documentation/git.html |
30 | grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html | |
9cc2c76f | 31 | |
b92cb86e SG |
32 | rm -f stdout.log stderr.log |
33 | check_unignored_build_artifacts | |
34 | ||
9cc2c76f | 35 | save_good_tree |