]>
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 | |
37fc8cb1 SG |
8 | filter_log () { |
9 | sed -e '/^GIT_VERSION = /d' \ | |
10 | -e '/^ \* new asciidoc flags$/d' \ | |
11 | "$1" | |
12 | } | |
13 | ||
b98712b9 LS |
14 | make check-builtins |
15 | make check-docs | |
b98712b9 | 16 | |
159e6010 | 17 | # Build docs with AsciiDoc |
37fc8cb1 SG |
18 | make doc > >(tee stdout.log) 2> >(tee stderr.raw >&2) |
19 | cat stderr.raw | |
20 | filter_log stderr.raw >stderr.log | |
21 | test ! -s stderr.log | |
b98712b9 LS |
22 | test -s Documentation/git.html |
23 | test -s Documentation/git.xml | |
24 | test -s Documentation/git.1 | |
159e6010 LS |
25 | grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html |
26 | ||
37fc8cb1 | 27 | rm -f stdout.log stderr.log stderr.raw |
b92cb86e SG |
28 | check_unignored_build_artifacts |
29 | ||
159e6010 LS |
30 | # Build docs with AsciiDoctor |
31 | make clean | |
37fc8cb1 SG |
32 | make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.raw >&2) |
33 | cat stderr.raw | |
34 | filter_log stderr.raw >stderr.log | |
35 | test ! -s stderr.log | |
159e6010 LS |
36 | test -s Documentation/git.html |
37 | grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html | |
9cc2c76f | 38 | |
37fc8cb1 | 39 | rm -f stdout.log stderr.log stderr.raw |
b92cb86e SG |
40 | check_unignored_build_artifacts |
41 | ||
9cc2c76f | 42 | save_good_tree |