tests/check-gendoc
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Thu, 26 Mar 2020 16:23:54 -0400
changeset 44621 c5653cf2811d
parent 41005 69c99898a48f
permissions -rwxr-xr-x
git: remove obsolete todo item The changes in 02c47b74366c cleaned up the requirement check.

#!/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