equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 "$TESTDIR/hghave" docutils || exit 80 |
|
4 |
|
5 HGENCODING=UTF-8 |
|
6 export HGENCODING |
|
7 |
|
8 for PO in C $TESTDIR/../i18n/*.po; do |
|
9 LOCALE=`basename $PO .po` |
|
10 echo |
|
11 echo "% extracting documentation from $LOCALE" |
|
12 echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt |
|
13 echo "" >> gendoc-$LOCALE.txt |
|
14 LC_ALL=$LOCALE python $TESTDIR/../doc/gendoc.py >> gendoc-$LOCALE.txt 2> /dev/null || exit |
|
15 |
|
16 # We call runrst without adding "--halt warning" to make it report |
|
17 # all errors instead of stopping on the first one. |
|
18 echo "checking for parse errors" |
|
19 python $TESTDIR/../doc/runrst html gendoc-$LOCALE.txt /dev/null |
|
20 done |
|