58962d668a8922921d3b3ba30a4bf4a223dae05a
   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 --jobs=2 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 --jobs=2 USE_ASCIIDOCTOR=1 doc
  21test -s Documentation/git.html
  22grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html