]> granicus.if.org Git - python/commitdiff
New helper script to build the .dvi for a Python manual; usable for the
authorFred Drake <fdrake@acm.org>
Thu, 7 May 1998 01:38:16 +0000 (01:38 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 7 May 1998 01:38:16 +0000 (01:38 +0000)
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.

Doc/tools/mkdvi.sh [new file with mode: 0755]

diff --git a/Doc/tools/mkdvi.sh b/Doc/tools/mkdvi.sh
new file mode 100755 (executable)
index 0000000..1bd442a
--- /dev/null
@@ -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 $?