1#!/usr/bin/env bash2#3# Perform sanity checks on documentation and build it.4#56set -e78make check-builtins9make check-docs1011# Build docs with AsciiDoc12make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)13! test -s stderr.log14test -s Documentation/git.html15test -s Documentation/git.xml16test -s Documentation/git.117grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html1819# Build docs with AsciiDoctor20make clean21make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)22sed '/^GIT_VERSION = / d' stderr.log23! test -s stderr.log24test -s Documentation/git.html25grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html