mirror of
https://github.com/python/cpython.git
synced 2025-11-15 08:01:29 +00:00
Add some support for the module index, so this can be used to build
the .aux file for any of the "manual" class documents.
This commit is contained in:
parent
7a64b355c1
commit
79d41ccdd3
1 changed files with 13 additions and 0 deletions
|
|
@ -39,8 +39,14 @@ export TEXINPUTS
|
||||||
|
|
||||||
echo $srcdir'/tools/newind.py >'$part'.ind'
|
echo $srcdir'/tools/newind.py >'$part'.ind'
|
||||||
$srcdir/tools/newind.py >$part.ind || exit $?
|
$srcdir/tools/newind.py >$part.ind || exit $?
|
||||||
|
echo $srcdir'/tools/newind.py modindex >mod'$part'.ind'
|
||||||
|
$srcdir/tools/newind.py modindex >mod$part.ind || exit $?
|
||||||
echo "$latex $part"
|
echo "$latex $part"
|
||||||
$latex $part || exit $?
|
$latex $part || exit $?
|
||||||
|
if [ ! -f mod$part.idx ] ; then
|
||||||
|
echo "Not using module index; removing mod$part.ind"
|
||||||
|
rm mod$part.ind
|
||||||
|
fi
|
||||||
if [ "$aux" ] ; then
|
if [ "$aux" ] ; then
|
||||||
# make sure the .dvi isn't interpreted as useful:
|
# make sure the .dvi isn't interpreted as useful:
|
||||||
rm $part.dvi
|
rm $part.dvi
|
||||||
|
|
@ -55,6 +61,13 @@ else
|
||||||
# skipping the index; clean up the unused file
|
# skipping the index; clean up the unused file
|
||||||
rm -f $part.ind
|
rm -f $part.ind
|
||||||
fi
|
fi
|
||||||
|
if [ -f mod$part.idx ] ; then
|
||||||
|
# using the index
|
||||||
|
echo $srcdir'/tools/fix_hack mod'$part'.idx'
|
||||||
|
$srcdir/tools/fix_hack mod$part.idx || exit $?
|
||||||
|
echo 'makeindex -s '$srcdir'/texinputs/python.ist mod'$part'.idx'
|
||||||
|
makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $?
|
||||||
|
fi
|
||||||
if [ "$pdf" ] ; then
|
if [ "$pdf" ] ; then
|
||||||
echo $srcdir'/tools/toc2bkm.py '$part
|
echo $srcdir'/tools/toc2bkm.py '$part
|
||||||
$srcdir/tools/toc2bkm.py $part
|
$srcdir/tools/toc2bkm.py $part
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue