#!/bin/sh

# Topal: GPG/GnuPG and Alpine/Pine integration
# Copyright (C) 2001--2022  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 version 3 as
# published by the Free Software Foundation.
# 
# 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, see <http://www.gnu.org/licenses/>.

	cat > index.html <<EOF
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
Topal: GPG/GnuPG and Alpine/Pine integration: Distribution page
</title>
<style type="text/css">
body {
  font-family: Helvetica, Geneva, Arial,
        SunSans-Regular, sans-serif ;
  background-color: #fafffa }
a:link {
  color: blue }
a:visited {
  color: purple }
.navbar {
  text-align: center;
  font-size: x-small }
img.validator {
	float: right
}
.tail {
        text-align: center ;
        font-size: x-small ;
        float: none ;
        clear: both
}
</style>
</head>
<body>

<h1>Topal: GPG/GnuPG and Alpine/Pine integration</h1>

<p>Copyright (C) 2001--2022  Phillip J. Brooke</p>


<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>/<a href="http://www.washington.edu/alpine/">Alpine</a>.  It offers
facilities to encrypt, decrypt, sign and verify emails. 
</p>

<h2>Features</h2>
EOF
sed '/<!-- FL -->/,/<!-- FL -->/ ! d' < ../Features.html >>index.html

	cat >> index.html <<EOF

<p>
See the included documentation 
for all the stuff like licensing, recent changes and instructions.
</p>

<h2>Release $1</h2>
<p>
The current release of Topal is <b>$1</b>.  Send email to 
<a href="mailto:p.j.brooke@bcs.org.uk"><tt>p.j.brooke@bcs.org.uk</tt></a>
if you would like to be notified of new Topal releases by email.
</p>


<h3>Files for download</h3>
<ul>
<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>.
     <br/>
     Full documentation is included in the tarball.</li>
<li> <a href="topal.pdf">Documentation (PDF, `ls -sk topal.pdf|awk '{print $1}'` kB)</a>.</li>
<li> <a href="COPYING">GNU Public Licence version 3</a>.</li>
<li> Some features (sending of any content-type except text/plain) require 
a patch to Pine.</li>
</ul>

<h3>Most recent changes</h3>
<dl>
EOF
sed '/<!-- MRC -->/,/<!-- MRC -->/ ! d' < ../Changelog.html >>index.html

	cat >> index.html <<EOF
</dl>

<hr/>
<p>
EOF

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

	cat >> index.html <<EOF
</p>
</body>
</html>
EOF


