tests/check-gendoc
author Raphaël Gomès <rgomes@octobus.net>
Thu, 04 Nov 2021 12:34:51 +0100
changeset 48301 9327ece2bc6f
parent 41005 69c99898a48f
permissions -rwxr-xr-x
relnotes: add 6.0 release notes Differential Revision: https://phab.mercurial-scm.org/D11736

#!/bin/sh
HGENCODING=UTF-8
export HGENCODING

echo ".. -*- coding: utf-8 -*-" > gendoc.txt
echo "" >> gendoc.txt
LANGUAGE=$1 "$PYTHON" "$TESTDIR/../doc/gendoc.py" >> gendoc.txt 2> /dev/null || exit

echo "checking for parse errors"
"$PYTHON" "$TESTDIR/../doc/docchecker" gendoc.txt
"$PYTHON" "$TESTDIR/../doc/runrst" html gendoc.txt /dev/null