summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-05-07 01:38:16 (GMT)
committerFred Drake <fdrake@acm.org>1998-05-07 01:38:16 (GMT)
commit5360879740f1f0019d9eacc8836900d4f986e438 (patch)
tree7287afb6f8170f583f499f6fd908cb706811e5a1 /Doc/tools
parent8e6c6b26451a0c11c0a1b7cfcfce2b47099f7000 (diff)
downloadcpython-5360879740f1f0019d9eacc8836900d4f986e438.zip
cpython-5360879740f1f0019d9eacc8836900d4f986e438.tar.gz
cpython-5360879740f1f0019d9eacc8836900d4f986e438.tar.bz2
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.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/mkdvi.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/Doc/tools/mkdvi.sh b/Doc/tools/mkdvi.sh
new file mode 100755
index 0000000..1bd442a
--- /dev/null
+++ b/Doc/tools/mkdvi.sh
@@ -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 $?