3 # Perform sanity checks on documentation and build it.
 
   9         sed -e '/^GIT_VERSION = /d' \
 
  10             -e "/constant Gem::ConfigMap is deprecated/d" \
 
  11             -e '/^    \* new asciidoc flags$/d' \
 
  12             -e '/stripped namespace before processing/d' \
 
  13             -e '/Attributed.*IDs for element/d' \
 
  20 # Build docs with AsciiDoc
 
  21 make doc > >(tee stdout.log) 2> >(tee stderr.raw >&2)
 
  23 filter_log stderr.raw >stderr.log
 
  25 test -s Documentation/git.html
 
  26 test -s Documentation/git.xml
 
  27 test -s Documentation/git.1
 
  28 grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
 
  30 rm -f stdout.log stderr.log stderr.raw
 
  31 check_unignored_build_artifacts
 
  33 # Build docs with AsciiDoctor
 
  35 make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.raw >&2)
 
  37 filter_log stderr.raw >stderr.log
 
  39 test -s Documentation/git.html
 
  40 grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
 
  42 rm -f stdout.log stderr.log stderr.raw
 
  43 check_unignored_build_artifacts