@@ -15,6 +15,13 @@ filter_log () {
1515 " $1 "
1616}
1717
18+ check_docs () {
19+ test -s " $1 " /Documentation/git.html &&
20+ test -s " $1 " /Documentation/git.xml &&
21+ test -s " $1 " /Documentation/git.1 &&
22+ grep " <meta name=\" generator\" content=\" $2 " " $1 " /Documentation/git.html
23+ }
24+
1825make check-builtins
1926make check-docs
2027
@@ -23,10 +30,7 @@ make doc > >(tee stdout.log) 2> >(tee stderr.raw >&2)
2330cat stderr.raw
2431filter_log stderr.raw > stderr.log
2532test ! -s stderr.log
26- test -s Documentation/git.html
27- test -s Documentation/git.xml
28- test -s Documentation/git.1
29- grep ' <meta name="generator" content="AsciiDoc ' Documentation/git.html
33+ check_docs . AsciiDoc
3034
3135rm -f stdout.log stderr.log stderr.raw
3236check_unignored_build_artifacts
@@ -37,10 +41,21 @@ make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.raw >&2)
3741cat stderr.raw
3842filter_log stderr.raw > stderr.log
3943test ! -s stderr.log
40- test -s Documentation/git.html
41- grep ' <meta name="generator" content="Asciidoctor ' Documentation/git.html
44+ check_docs . Asciidoctor
4245
4346rm -f stdout.log stderr.log stderr.raw
4447check_unignored_build_artifacts
4548
49+ # Build docs with Meson and AsciiDoc
50+ meson setup build-asciidoc -Ddocs=html,man -Ddocs_backend=asciidoc
51+ meson compile -C build-asciidoc
52+ check_docs build-asciidoc AsciiDoc
53+ rm -rf build-asciidoc
54+
55+ # Build docs with Meson and AsciiDoctor
56+ meson setup build-asciidoctor -Ddocs=html,man -Ddocs_backend=asciidoctor
57+ meson compile -C build-asciidoctor
58+ check_docs build-asciidoctor Asciidoctor
59+ rm -rf build-asciidoctor
60+
4661save_good_tree
0 commit comments