blob: e0f34b8c56bd3071cbfbda2ac346558add165950 [file] [log] [blame]
Fred Drake89201561998-05-07 14:53:55 +00001#! /bin/sh
2#
3# Drive HTML generation for a Python manual.
4#
5# The first arg is required and is the designation for which manual to build;
6# api, ext, lib, ref, or tut. All other args are passed on to latex2html.
7
8WORKDIR=`pwd`
9cd `dirname $0`/..
10srcdir=`pwd`
11cd $WORKDIR
12
13part=$1; shift 1
14
15TEXINPUTS=$srcdir/$part:$TEXINPUTS
16export TEXINPUTS
17
18if [ -d $part ] ; then
19 (set -x; rm -f $part/*.html)
20fi
21
22set -x
23
Fred Drakef4166a41998-05-08 04:00:56 +000024latex2html \
25 -init_file $srcdir/perl/l2hinit.perl \
26 ${1:+$@} \
27 $srcdir/$part/$part.tex
Fred Drake89201561998-05-07 14:53:55 +000028
29cd $part
30$srcdir/tools/node2label.pl *.html