blob: adeaec82ed57c8a6043cc0eec7cdd09d06ccb84b [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 Drake7777e361998-11-30 20:27:31 +000028 -address '<hr>Send comments to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.' \
Fred Drakea4565b01998-05-15 17:14:17 +000029 -dir $part \
Fred Drakef4166a41998-05-08 04:00:56 +000030 ${1:+$@} \
31 $srcdir/$part/$part.tex
Fred Drake89201561998-05-07 14:53:55 +000032
Fred Drake323dc701998-05-11 18:41:16 +000033echo '(cd '$part'; '$srcdir'/tools/node2label.pl *.html)'
Fred Drake89201561998-05-07 14:53:55 +000034cd $part
35$srcdir/tools/node2label.pl *.html