Subject: Texinfo to HTML converter
From: Lionel Cons <[email-masked]>
Date: Fri, 30 Jul 1993 10:15:54 GMT
Newsgroups: cern.www.announce,cern.www.talk,comp.infosystems.www

I've written a Perl script to convert Texinfo files to HTML.

The program takes Texinfo files (and not the info ones) and
produces a set of HTML files. The quality of the output is much
better than a info->HTML gateway.

The program understands most Texinfo version 2 commands and runs
without problem on big Texinfo files like the Emacs 19 manual.

You can have a look at the result:
<A HREF="http://asis01.cern.ch/emacs19/emacs.html">here</A>
and compare it to the info gateway:
<A HREF="http://www.cis.ohio-state.edu:85/info/emacs">there</A>.

All comments/suggestions are welcome.

Lionel Cons

+------ CERN - European Laboratory for Particle Physics ------+
| E-mail: [email-masked]                                 |
| Earth-mail: CN/SW/WS, CERN, CH-1211 GENEVE 23, Switzerland  |
| Phone: + (41 22) 767 49 13         Fax: + (41 22) 767 71 55 |
+-------------------------------------------------------------+
 \        If everything else fails, read the manual.         /
  \       If it still does not work, try to plug it.        /
   +-------------------------------------------------------+

#---------------------------------- cut here ----------------------------------
# This is a shell archive.  Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# This archive contains:
#	texi2html	
#
# Existing files will not be overwritten.
# Error checking via sum(1) will be performed.
# Files are compressed using compress(1).

LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH

if sum -r </dev/null >/dev/null 2>&1
then
	sumopt='-r'
else
	sumopt=''
fi

if test -f texi2html
then
	echo Ok to overwrite existing file texi2html\?
	read answer
	case "$answer" in
	[yY]*)	echo Proceeding;;
	*)	echo Aborting; exit 1;;
	esac
	rm -f texi2html
	if test -f texi2html
	then
		echo Error: could not remove texi2html, aborting
		exit 1
	fi
fi
echo x - texi2html '[compressed]'
uudecode <<'@eof'
@eof
uncompress <texi2html >/tmp/compress$$
mv /tmp/compress$$ texi2html
set `sum $sumopt <texi2html`; if test $1 -ne 12100
then
	echo ERROR: texi2html checksum is $1 should be 12100
fi

chmod 444 texi2html

exit 0