File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ export TEXINPUTS
3939
4040echo $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 $?
4244echo " $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
4450if [ " $aux " ] ; then
4551 # make sure the .dvi isn't interpreted as useful:
4652 rm $part .dvi
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
You can’t perform that action at this time.
0 commit comments