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