Sync with 2.13-rc0
[git] / ci / test-documentation.sh
1 #!/bin/sh
2 #
3 # Perform sanity checks on documentation and build it.
4 #
5
6 set -e
7
8 make check-builtins
9 make check-docs
10
11 # Build docs with AsciiDoc
12 make --jobs=2 doc
13 test -s Documentation/git.html
14 test -s Documentation/git.xml
15 test -s Documentation/git.1
16 grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
17
18 # Build docs with AsciiDoctor
19 make clean
20 make --jobs=2 USE_ASCIIDOCTOR=1 doc
21 test -s Documentation/git.html
22 grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html