Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f43ce00

Browse files
committed
Make sure errors get propogated.
1 parent 5d856fc commit f43ce00

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/tools/mkhtml.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# Drive HTML generation for a Python manual.
44
#
5-
# This is probably *not* useful outside of the standard Python documentation.
5+
# This is probably *not* useful outside of the standard Python documentation,
6+
# but suggestions are welcome and should be sent to <[email protected]>.
67
#
78
# The first arg is required and is the designation for which manual to build;
89
# api, ext, lib, ref, or tut. All other args are passed on to latex2html.
@@ -28,8 +29,8 @@ latex2html \
2829
-address '<hr>Send comments to <a href="mailto:[email protected]">[email protected]</a>.' \
2930
-dir $part \
3031
${1:+$@} \
31-
$srcdir/$part/$part.tex
32+
$srcdir/$part/$part.tex || exit $?
3233

33-
echo '(cd '$part'; '$srcdir'/tools/node2label.pl *.html)'
34+
echo "(cd $part; $srcdir/tools/node2label.pl \*.html)"
3435
cd $part
35-
$srcdir/tools/node2label.pl *.html
36+
$srcdir/tools/node2label.pl *.html || exit $?

0 commit comments

Comments
 (0)