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

Skip to content

Commit 79d41cc

Browse files
committed
Add some support for the module index, so this can be used to build
the .aux file for any of the "manual" class documents.
1 parent 7a64b35 commit 79d41cc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Doc/tools/mkdvi.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ export TEXINPUTS
3939

4040
echo $srcdir'/tools/newind.py >'$part'.ind'
4141
$srcdir/tools/newind.py >$part.ind || exit $?
42+
echo $srcdir'/tools/newind.py modindex >mod'$part'.ind'
43+
$srcdir/tools/newind.py modindex >mod$part.ind || exit $?
4244
echo "$latex $part"
4345
$latex $part || exit $?
46+
if [ ! -f mod$part.idx ] ; then
47+
echo "Not using module index; removing mod$part.ind"
48+
rm mod$part.ind
49+
fi
4450
if [ "$aux" ] ; then
4551
# make sure the .dvi isn't interpreted as useful:
4652
rm $part.dvi
@@ -55,6 +61,13 @@ else
5561
# skipping the index; clean up the unused file
5662
rm -f $part.ind
5763
fi
64+
if [ -f mod$part.idx ] ; then
65+
# using the index
66+
echo $srcdir'/tools/fix_hack mod'$part'.idx'
67+
$srcdir/tools/fix_hack mod$part.idx || exit $?
68+
echo 'makeindex -s '$srcdir'/texinputs/python.ist mod'$part'.idx'
69+
makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $?
70+
fi
5871
if [ "$pdf" ] ; then
5972
echo $srcdir'/tools/toc2bkm.py '$part
6073
$srcdir/tools/toc2bkm.py $part

0 commit comments

Comments
 (0)