Apparently the code to forestall Tk eating events was too aggressive (Tk user input...
[python/dscho.git] / Doc / tools / mkinfo
blobedba1db8e70445686aed245e5629e3df8a457043
1 #! /bin/sh
2 # -*- Ksh -*-
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>
10 PERL=${PERL:-perl}
11 EMACS=${EMACS:-emacs}
12 MAKEINFO=${MAKEINFO:-makeinfo}
15 # Normalize file name since something called by html2texi.pl seems to
16 # screw up with relative path names.
17 FILENAME="$1"
18 DOCDIR=`dirname "$FILENAME"`
19 DOCFILE=`basename "$FILENAME"`
20 DOCNAME=`basename "$FILENAME" .html`
22 # Now build the real directory names, and locate our support stuff:
23 WORKDIR=`pwd`
24 cd `dirname $0`
25 TOOLSDIR=`pwd`
26 cd $DOCDIR
27 DOCDIR=`pwd`
28 cd $WORKDIR
31 run() {
32 # show what we're doing, like make does:
33 echo "$*"
34 $* || exit $?
38 # generate the Texinfo file:
40 run $PERL -I$TOOLSDIR $TOOLSDIR/html2texi.pl $DOCDIR/$DOCFILE
41 run $EMACS -batch -l $TOOLSDIR/fixinfo.el $DOCNAME.texi
42 rm -f $DOCNAME.texi~
45 # generate the .info files:
47 run $MAKEINFO --footnote-style end --fill-column 72 \
48 --paragraph-indent 0 $DOCNAME.texi