Show More
@@ -0,0 +1,12 b'' | |||
|
1 | #!/bin/sh | |
|
2 | ||
|
3 | "$TESTDIR/hghave" rst2html || exit 80 | |
|
4 | RST2HTML=$(which rst2html 2> /dev/null || which rst2html.py) | |
|
5 | ||
|
6 | echo "checking for syntax errors in gendoc.py" | |
|
7 | python $TESTDIR/../doc/gendoc.py > gendoc.txt || exit | |
|
8 | ||
|
9 | # We run rst2html over the file without adding "--halt warning" to | |
|
10 | # make it report all errors instead of stopping on the first one. | |
|
11 | echo "checking for parse errors with rst2html" | |
|
12 | $RST2HTML gendoc.txt /dev/null |
@@ -0,0 +1,2 b'' | |||
|
1 | checking for syntax errors in gendoc.py | |
|
2 | checking for parse errors with rst2html |
@@ -123,6 +123,10 b' def has_lsprof():' | |||
|
123 | 123 | def has_git(): |
|
124 | 124 | return matchoutput('git --version 2>&1', r'^git version') |
|
125 | 125 | |
|
126 | def has_rst2html(): | |
|
127 | return matchoutput('rst2html --version', r'^rst2html \(Docutils') or \ | |
|
128 | matchoutput('rst2html.py --version', r'^rst2html.py \(Docutils') | |
|
129 | ||
|
126 | 130 | def has_svn(): |
|
127 | 131 | return matchoutput('svn --version 2>&1', r'^svn, version') and \ |
|
128 | 132 | matchoutput('svnadmin --version 2>&1', r'^svnadmin, version') |
@@ -195,6 +199,7 b' checks = {' | |||
|
195 | 199 | "outer-repo": (has_outer_repo, "outer repo"), |
|
196 | 200 | "p4": (has_p4, "Perforce server and client"), |
|
197 | 201 | "pygments": (has_pygments, "Pygments source highlighting library"), |
|
202 | "rst2html": (has_rst2html, "Docutils rst2html tool"), | |
|
198 | 203 | "svn": (has_svn, "subversion client and admin tools"), |
|
199 | 204 | "svn-bindings": (has_svn_bindings, "subversion python bindings"), |
|
200 | 205 | "symlink": (has_symlink, "symbolic links"), |
General Comments 0
You need to be logged in to leave comments.
Login now