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

Skip to content

Commit c260c0b

Browse files
committed
Further refinement, to allow this to handle the library reference as
well as the other "manual" documents.
1 parent 011f6fc commit c260c0b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/tools/mkdvi.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,32 @@ echo "$latex $part"
4545
$latex $part || exit $?
4646
if [ ! -f mod$part.idx ] ; then
4747
echo "Not using module index; removing mod$part.ind"
48-
rm mod$part.ind
48+
rm mod$part.ind || exit $?
4949
fi
5050
if [ "$aux" ] ; then
5151
# make sure the .dvi isn't interpreted as useful:
52-
rm $part.dvi
52+
rm $part.dvi || exit $?
5353
else
5454
if [ -f $part.idx ] ; then
5555
# using the index
5656
echo $srcdir'/tools/fix_hack '$part'.idx'
5757
$srcdir/tools/fix_hack $part.idx || exit $?
5858
echo 'makeindex -s '$srcdir'/texinputs/python.ist '$part'.idx'
5959
makeindex -s $srcdir/texinputs/python.ist $part.idx || exit $?
60+
echo $srcdir'/tools/indfix.py '$part'.ind'
61+
$srcdir/tools/indfix.py $part.ind || exit $?
6062
else
6163
# skipping the index; clean up the unused file
6264
rm -f $part.ind
6365
fi
6466
if [ -f mod$part.idx ] ; then
6567
# using the index
66-
echo $srcdir'/tools/fix_hack mod'$part'.idx'
67-
$srcdir/tools/fix_hack mod$part.idx || exit $?
6868
echo 'makeindex -s '$srcdir'/texinputs/python.ist mod'$part'.idx'
6969
makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $?
7070
fi
7171
if [ "$pdf" ] ; then
7272
echo $srcdir'/tools/toc2bkm.py '$part
73-
$srcdir/tools/toc2bkm.py $part
73+
$srcdir/tools/toc2bkm.py $part || exit $?
7474
fi
7575
echo "$latex $part"
7676
$latex $part || exit $?

0 commit comments

Comments
 (0)