4 # Script to drive the HTML-info conversion process.
5 # Pass in a single parameter: the name of the top-level HTML file
6 # generated by LaTeX2HTML.
8 # Written by Fred L. Drake, Jr. <fdrake@acm.org>
11 MAKEINFO
=${MAKEINFO:-makeinfo}
14 # Normalize file name since something called by html2texi.pl seems to
15 # screw up with relative path names.
17 DOCDIR
=`dirname "$FILENAME"`
18 DOCFILE
=`basename "$FILENAME"`
19 DOCNAME
=`basename "$FILENAME" .tex`
23 INFONAME
="python-$DOCNAME.info"
26 # Now build the real directory names, and locate our support stuff:
36 # show what we're doing, like make does:
42 # generate the Texinfo file:
44 run
$EMACS -batch -q --no-site-file -l $TOOLSDIR/py2texi.el \
45 --eval "(setq py2texi-dirs '(\"./\" \"../texinputs/\" \"$DOCDIR\"))" \
46 --eval "(py2texi \"$DOCDIR/$DOCFILE\")" \
51 # generate the .info files:
53 run
$MAKEINFO --footnote-style end
--fill-column 72 \
54 --paragraph-indent 0 --output=$INFONAME $DOCNAME.texi