blob: ab0c2fccd6c18d7c152bf7fbe9d47bafcd6e69e8 [file] [log] [blame]
Fred Drake89201561998-05-07 14:53:55 +00001#! /bin/sh
2#
Fred Drakef6b6bbc1998-08-11 14:10:40 +00003# Drive HTML generation for a Python manual.
Fred Drake89201561998-05-07 14:53:55 +00004#
Fred Drakef6b6bbc1998-08-11 14:10:40 +00005# This is probably *not* useful outside of the standard Python documentation.
6#
7# The first arg is required and is the designation for which manual to build;
8# api, ext, lib, ref, or tut. All other args are passed on to latex2html.
Fred Drake89201561998-05-07 14:53:55 +00009
10WORKDIR=`pwd`
11cd `dirname $0`/..
12srcdir=`pwd`
13cd $WORKDIR
14
15part=$1; shift 1
16
17TEXINPUTS=$srcdir/$part:$TEXINPUTS
18export TEXINPUTS
19
20if [ -d $part ] ; then
Fred Drake323dc701998-05-11 18:41:16 +000021 rm -f $part/*.html
Fred Drake89201561998-05-07 14:53:55 +000022fi
23
Fred Drakef6b6bbc1998-08-11 14:10:40 +000024echo "latex2html -init_file $srcdir/perl/l2hinit.perl -dir $part" \
Fred Drakea4565b01998-05-15 17:14:17 +000025 "${1:+$@} $srcdir/$part/$part.tex"
Fred Drakef4166a41998-05-08 04:00:56 +000026latex2html \
27 -init_file $srcdir/perl/l2hinit.perl \
Fred Drakea4565b01998-05-15 17:14:17 +000028 -dir $part \
Fred Drakef4166a41998-05-08 04:00:56 +000029 ${1:+$@} \
30 $srcdir/$part/$part.tex
Fred Drake89201561998-05-07 14:53:55 +000031
Fred Drake323dc701998-05-11 18:41:16 +000032echo '(cd '$part'; '$srcdir'/tools/node2label.pl *.html)'
Fred Drake89201561998-05-07 14:53:55 +000033cd $part
34$srcdir/tools/node2label.pl *.html