New script to drive HTML generation.

This commit is contained in:
Fred Drake 1998-05-07 14:53:55 +00:00
parent 4c9542b271
commit 8920156d04
1 changed files with 27 additions and 0 deletions

27
Doc/tools/mkhtml.sh Executable file
View File

@ -0,0 +1,27 @@
#! /bin/sh
#
# Drive HTML generation for a Python manual.
#
# 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
part=$1; shift 1
TEXINPUTS=$srcdir/$part:$TEXINPUTS
export TEXINPUTS
if [ -d $part ] ; then
(set -x; rm -f $part/*.html)
fi
set -x
latex2html -init_file $srcdir/perl/l2hinit.perl ${1:+$@} $srcdir/$part/$part
cd $part
$srcdir/tools/node2label.pl *.html