]>
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 | 7 | |
b011fabd | 8 | test -n "$ALREADY_HAVE_ASCIIDOCTOR" || |
657343a6 | 9 | gem install asciidoctor |
b98712b9 LS |
10 | |
11 | make check-builtins | |
12 | make check-docs | |
b98712b9 | 13 | |
159e6010 | 14 | # Build docs with AsciiDoc |
eaa62291 | 15 | make doc > >(tee stdout.log) 2> >(tee stderr.log >&2) |
505ad913 | 16 | ! test -s stderr.log |
b98712b9 LS |
17 | test -s Documentation/git.html |
18 | test -s Documentation/git.xml | |
19 | test -s Documentation/git.1 | |
159e6010 LS |
20 | grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html |
21 | ||
b92cb86e SG |
22 | rm -f stdout.log stderr.log |
23 | check_unignored_build_artifacts | |
24 | ||
159e6010 LS |
25 | # Build docs with AsciiDoctor |
26 | make clean | |
eaa62291 | 27 | make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2) |
505ad913 LS |
28 | sed '/^GIT_VERSION = / d' stderr.log |
29 | ! test -s stderr.log | |
159e6010 LS |
30 | test -s Documentation/git.html |
31 | grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html | |
9cc2c76f | 32 | |
b92cb86e SG |
33 | rm -f stdout.log stderr.log |
34 | check_unignored_build_artifacts | |
35 | ||
9cc2c76f | 36 | save_good_tree |