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>
12 MAKEINFO
=${MAKEINFO:-makeinfo}
15 # Normalize file name since something called by html2texi.pl seems to
16 # screw up with relative path names.
18 DOCDIR
=`dirname "$FILENAME"`
19 DOCFILE
=`basename "$FILENAME"`
20 DOCNAME
=`basename "$FILENAME" .tex`
24 INFONAME
="python-$DOCNAME.info"
27 # Now build the real directory names, and locate our support stuff:
37 # show what we're doing, like make does:
43 # generate the Texinfo file:
45 run
$EMACS -batch -q --no-site-file -l $TOOLSDIR/py2texi.el \
46 --eval "(setq py2texi-dirs '(\"./\" \"../texinputs/\" \"$DOCDIR\"))" \
47 --eval "(py2texi \"$DOCDIR/$DOCFILE\")" \
52 # generate the .info files:
54 run
$MAKEINFO --footnote-style end
--fill-column 72 \
55 --paragraph-indent 0 --output=$INFONAME $DOCNAME.texi