4 # Script to drive the HTML-info conversion process.
5 # Pass in upto three parameters:
6 # - the name of the main tex file
7 # - the name of the output file in texi format (optional)
8 # - the name of the output file in info format (optional)
10 # Written by Fred L. Drake, Jr. <fdrake@acm.org>
13 MAKEINFO
=${MAKEINFO:-makeinfo}
16 # Normalize file name since something called by html2texi.pl seems to
17 # screw up with relative path names.
19 DOCDIR
=`dirname "$FILENAME"`
20 DOCFILE
=`basename "$FILENAME"`
21 DOCNAME
=`basename "$FILENAME" .tex`
25 TEXINAME
="python-$DOCNAME.texi"
30 INFONAME
="python-$DOCNAME.info"
33 # Now build the real directory names, and locate our support stuff:
41 COMMONDIR
="`dirname $DOCDIR`/commontex"
45 # show what we're doing, like make does:
51 # generate the Texinfo file:
53 run
$EMACS -batch -q --no-site-file -l $TOOLSDIR/py2texi.el \
54 --eval "(setq py2texi-dirs '(\"$DOCDIR\" \"$COMMONDIR\" \"../texinputs\"))" \
55 --eval "(setq py2texi-texi-file-name \"$TEXINAME\")" \
56 --eval "(setq py2texi-info-file-name \"$INFONAME\")" \
57 --eval "(py2texi \"$DOCDIR/$DOCFILE\")" \
62 # generate the .info files:
64 run
$MAKEINFO --footnote-style end
--fill-column 72 \
65 --paragraph-indent 0 --output=$INFONAME $TEXINAME