mirror of https://github.com/python/cpython.git
Further refinement, to allow this to handle the library reference as
well as the other "manual" documents.
This commit is contained in:
parent
011f6fca31
commit
c260c0bcdb
|
@ -45,11 +45,11 @@ echo "$latex $part"
|
||||||
$latex $part || exit $?
|
$latex $part || exit $?
|
||||||
if [ ! -f mod$part.idx ] ; then
|
if [ ! -f mod$part.idx ] ; then
|
||||||
echo "Not using module index; removing mod$part.ind"
|
echo "Not using module index; removing mod$part.ind"
|
||||||
rm mod$part.ind
|
rm mod$part.ind || exit $?
|
||||||
fi
|
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 || exit $?
|
||||||
else
|
else
|
||||||
if [ -f $part.idx ] ; then
|
if [ -f $part.idx ] ; then
|
||||||
# using the index
|
# using the index
|
||||||
|
@ -57,20 +57,20 @@ else
|
||||||
$srcdir/tools/fix_hack $part.idx || exit $?
|
$srcdir/tools/fix_hack $part.idx || exit $?
|
||||||
echo 'makeindex -s '$srcdir'/texinputs/python.ist '$part'.idx'
|
echo 'makeindex -s '$srcdir'/texinputs/python.ist '$part'.idx'
|
||||||
makeindex -s $srcdir/texinputs/python.ist $part.idx || exit $?
|
makeindex -s $srcdir/texinputs/python.ist $part.idx || exit $?
|
||||||
|
echo $srcdir'/tools/indfix.py '$part'.ind'
|
||||||
|
$srcdir/tools/indfix.py $part.ind || exit $?
|
||||||
else
|
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
|
if [ -f mod$part.idx ] ; then
|
||||||
# using the index
|
# 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'
|
echo 'makeindex -s '$srcdir'/texinputs/python.ist mod'$part'.idx'
|
||||||
makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $?
|
makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $?
|
||||||
fi
|
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 || exit $?
|
||||||
fi
|
fi
|
||||||
echo "$latex $part"
|
echo "$latex $part"
|
||||||
$latex $part || exit $?
|
$latex $part || exit $?
|
||||||
|
|
Loading…
Reference in New Issue