tests/check-gendoc
author Tony Tung <tonytung@merly.org>
Fri, 19 Aug 2016 13:30:40 -0700
changeset 29843 bac1829ec31f
parent 28809 7a1ad08b9ff5
child 41015 69c99898a48f
permissions -rwxr-xr-x
util: checknlink should remove file it creates if an exception occurs There's no reason to leave the file behind.

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