diff --git a/Doc/tools/mkdvi.sh b/Doc/tools/mkdvi.sh deleted file mode 100755 index 880192d1c3f..00000000000 --- a/Doc/tools/mkdvi.sh +++ /dev/null @@ -1,77 +0,0 @@ -#! /bin/sh -# -# Build one of the simple documents. This can be used to create the DVI, -# PDF, or LaTeX "aux" files. It can accept one of three optional parameters: -# -# --aux Create only the LaTeX .aux file -# --dvi Create the DeVice Independent output -# --pdf Create Adobe PDF output -# -# If no parameter is given, DVI output is produced. -# -# One positional parameter is required: the "base" of the document to -# format. For the standard Python documentation, this will be api, ext, -# lib, mac, ref, or tut. - -WORKDIR=`pwd` -cd `dirname $0`/.. -srcdir=`pwd` -cd $WORKDIR - -latex=latex -aux='' -pdf='' -if [ "$1" = "--pdf" ] ; then - pdf=true - latex=pdflatex - shift 1 -elif [ "$1" = "--aux" ] ; then - aux=true - shift 1 -elif [ "$1" = "--dvi" ] ; then - shift 1 -fi - -part=$1; shift 1 - -TEXINPUTS=.:$srcdir/$part:$TEXINPUTS -export TEXINPUTS - -echo $srcdir'/tools/newind.py >'$part'.ind' -$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" -$latex $part || exit $? -if [ ! -f mod$part.idx ] ; then - echo "Not using module index; removing mod$part.ind" - rm mod$part.ind || exit $? -fi -if [ "$aux" ] ; then - # make sure the .dvi isn't interpreted as useful: - rm $part.dvi || exit $? -else - if [ -f $part.idx ] ; then - # using the index - echo $srcdir'/tools/fix_hack '$part'.idx' - $srcdir/tools/fix_hack $part.idx || exit $? - echo 'makeindex -s '$srcdir'/texinputs/python.ist '$part'.idx' - makeindex -s $srcdir/texinputs/python.ist $part.idx || exit $? - echo $srcdir'/tools/indfix.py '$part'.ind' - $srcdir/tools/indfix.py $part.ind || exit $? - else - # skipping the index; clean up the unused file - rm -f $part.ind - fi - if [ -f mod$part.idx ] ; then - # using the index - echo 'makeindex -s '$srcdir'/texinputs/python.ist mod'$part'.idx' - makeindex -s $srcdir/texinputs/python.ist mod$part.idx || exit $? - fi - if [ "$pdf" ] ; then - echo $srcdir'/tools/toc2bkm.py '$part - $srcdir/tools/toc2bkm.py $part || exit $? - fi - echo "$latex $part" - $latex $part || exit $? -fi diff --git a/Doc/tools/mkhtml.sh b/Doc/tools/mkhtml.sh deleted file mode 100755 index fcd2ea01d45..00000000000 --- a/Doc/tools/mkhtml.sh +++ /dev/null @@ -1,60 +0,0 @@ -#! /bin/sh -# -# Drive HTML generation for a Python manual. -# -# This is probably *not* useful outside of the standard Python documentation, -# but suggestions are welcome and should be sent to . -# -# The first arg is required and is the designation for which manual to build; -# api, ext, lib, ref, or tut. All other args are passed on to latex2html. - -WORKDIR=`pwd` -cd `dirname $0`/.. -srcdir=`pwd` -cd $WORKDIR - -use_logical_names=true - -if [ "$1" = "--numeric" ] ; then - use_logical_names=false - shift 1 -fi - -part=$1; shift 1 - -TEXINPUTS=$srcdir/$part:$TEXINPUTS -export TEXINPUTS - -if [ -d $part ] ; then - rm -f $part/*.html -else - mkdir $part -fi - -echo "latex2html -no_auto_link" \ - "-up_url '../index.html' -up_title 'Documentation Index'" \ - "-init_file $srcdir/perl/l2hinit.perl -dir $part" \ - "${1:+$@} $srcdir/$part/$part.tex" -latex2html \ - -no_auto_link \ - -up_url '../index.html' \ - -up_title 'Documentation Index' \ - -init_file $srcdir/perl/l2hinit.perl \ - -address '
See About this document... for information on suggesting changes.' \ - -dir $part \ - ${1:+$@} \ - $srcdir/$part/$part.tex || exit $? - -cp $part/$part.html $part/index.html - -# copy in the stylesheet -echo "cp $srcdir/html/style.css $part/$part.css" -cp $srcdir/html/style.css $part/$part.css || exit $? - -if $use_logical_names ; then - echo "(cd $part; $srcdir/tools/node2label.pl \*.html)" - cd $part - $srcdir/tools/node2label.pl *.html || exit $? -else - echo "Skipping use of logical file names due to --numeric." -fi diff --git a/Doc/tools/newind.py b/Doc/tools/newind.py deleted file mode 100755 index b3a263b3fec..00000000000 --- a/Doc/tools/newind.py +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env python - -"""Really nasty little script to create an empty, labeled index on stdout. - -Do it this way since some shells seem to work badly (and differently) with -the leading '\b' for the first output line. Specifically, /bin/sh on -Solaris doesn't seem to get it right. Once the quoting works there, it -doesn't work on Linux any more. ;-( -""" -__version__ = '$Revision$' -# $Source$ - -import sys - -if sys.argv[1:]: - label = sys.argv[1] -else: - label = "genindex" - -print "\\begin{theindex}" -print "\\label{%s}" % label -print "\\end{theindex}"