blob: d6e8508b96d307a1414358c7ca34479439a4847b [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
Fred Drake323dc701998-05-11 18:41:16 +000019 rm -f $part/*.html
Fred Drake89201561998-05-07 14:53:55 +000020fi
21
Fred Drake323dc701998-05-11 18:41:16 +000022echo "latex2html -init_file $srcdir/perl/l2hinit.perl ${1:+$@} " \
23 "$srcdir/$part/$part.tex"
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
Fred Drake323dc701998-05-11 18:41:16 +000029echo '(cd '$part'; '$srcdir'/tools/node2label.pl *.html)'
Fred Drake89201561998-05-07 14:53:55 +000030cd $part
31$srcdir/tools/node2label.pl *.html