mkhtml.sh 709 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#! /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
19
    rm -f $part/*.html
20 21
fi

22 23
echo "latex2html -init_file $srcdir/perl/l2hinit.perl -dir $part " \
 "${1:+$@} $srcdir/$part/$part.tex"
24 25
latex2html \
 -init_file $srcdir/perl/l2hinit.perl \
26
 -dir $part \
27 28
 ${1:+$@} \
 $srcdir/$part/$part.tex
29

30
echo '(cd '$part'; '$srcdir'/tools/node2label.pl *.html)'
31 32
cd $part
$srcdir/tools/node2label.pl *.html