mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
New helper script to build the .dvi for a Python manual; usable for the
api, ext, ref, and tut manuals. The Library Reference requires too much special index processing to make it beneficial to extend this to support it.
This commit is contained in:
parent
8e6c6b2645
commit
5360879740
1 changed files with 26 additions and 0 deletions
26
Doc/tools/mkdvi.sh
Executable file
26
Doc/tools/mkdvi.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# Build one of the simple documents.
|
||||
|
||||
WORKDIR=`pwd`
|
||||
cd `dirname $0`/..
|
||||
srcdir=`pwd`
|
||||
cd $WORKDIR
|
||||
|
||||
PART=$1
|
||||
|
||||
TEXINPUTS=$srcdir/$PART:$TEXINPUTS
|
||||
export TEXINPUTS
|
||||
|
||||
set -x
|
||||
$srcdir/tools/newind.py >$PART.ind || exit $?
|
||||
latex $PART || exit $?
|
||||
if [ -f $PART.idx ] ; then
|
||||
# using the index
|
||||
$srcdir/tools/fix_hack $*.idx || exit $?
|
||||
makeindex -s $srcdir/texinputs/myindex.ist $*.idx || exit $?
|
||||
else
|
||||
# skipping the index; clean up the unused file
|
||||
rm -f $PART.ind
|
||||
fi
|
||||
latex $PART || exit $?
|
||||
Loading…
Add table
Add a link
Reference in a new issue