#!/bin/sh

# `Topal': GPG/Pine integration
#
# Copyright (C) 2001--2003  Phillip J. Brooke
#
#     This program is free software; you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation; either version 2 of the License, or
#     (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#     along with this program; if not, write to the Free Software
#     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

	cat > index.html <<EOF
<HTML>
<HEAD>
<TITLE>
\`Topal': Distribution
</TITLE>
</HEAD>
<BODY>

<H1>\`Topal': Distribution</H1>

Copyright (C) 2001-2003  Phillip J. Brooke
<P>
Topal is a \`glue' program that links 
<A HREF="http://www.gnupg.org">GnuPG</A>
and 
<A HREF="http://www.washington.edu/pine/">Pine</A>.  It offers
facilities to encrypt, decrypt, sign and verify emails.  
This is the feature list from the <A HREF="README.html">README</A> file:
EOF
sed '/<!-- FL -->/,/<!-- FL -->/ ! d' < README.html >>index.html

	cat >> index.html <<EOF

<P>

See the <A HREF="README.html">README</A> 
file for all the stuff like licensing, 
<A HREF="README.html#todo">TO DO</A>, 
<A HREF="README.html#last-changes">recent changes</A>, etc.

<P>

The current release of Topal is <B>$1</B>.  Send email to 
<A HREF="mailto:pjb@lothlann.freeserve.co.uk"><TT>pjb@lothlann.freeserve.co.uk</TT></A>
if you would like to be notified of new Topal releases by email.

<P>

The most recent changes were:
<DL>
EOF
sed '/<!-- MRC -->/,/<!-- MRC -->/ ! d' < README.html >>index.html

	cat >> index.html <<EOF
</DL>
<P>
Files available are:
<UL>
<LI> The <A HREF="README.html">README</A> file.
<LI> <A HREF="COPYING">GNU Public Licence</A>.
<LI> The <A HREF="topal-package-$1.tgz">source code package</A>
 (`ls -sk topal-package-$1.tgz|awk '{print $1}'` kB, release $1) and a 
     <A HREF="topal-package-$1.tgz.asc">detached signature</A>.
     <P>
     You will need the source package, even if you don't want to compile Topal yourself.  The documentation is included in the tarball.
<LI> The <A HREF="topal.gz">topal binary for Linux x86</A>
 (`ls -sk topal.gz|awk '{print $1}'` kB, not stripped, gzip'd, release $1) and a 
     <A HREF="topal.gz.asc">detached signature</A>.

     The output of ldd for the topal binary (on the build machine) is
<PRE>
EOF

ldd ../topal | sed 's/>/\&gt;/g' >> index.html


	cat >> index.html <<EOF
</PRE>
<LI> The <A HREF="topal-ps.gz">topal binary for Linux x86</A>
 (statically linked against the GNAT library, `ls -sk topal-ps.gz|awk '{print $1}'` kB, stripped, gzip'd, release $1) and a 
     <A HREF="topal-ps.gz.asc">detached signature</A>.  You'll need to rename this as \`topal'.

     The output of ldd for this binary (on the build machine) is
<PRE>
EOF

ldd ../topal-ps | sed 's/>/\&gt;/g' >> index.html


	cat >> index.html <<EOF
</PRE>
<LI> Some features (sending of any content-type except text/plain) require 
a patch to Pine.  (See the <A HREF="README.html">README</A>.)
</UL>

<P>

EOF

echo Last generated: $(date) >> index.html 

	cat >> index.html <<EOF
</BODY>
</HTML>
EOF


