#!/bin/sh
title=$1
shift;
cat << EOF > index.html
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="Wilko Quak">
</head>
<body>
<center>
<h1>$title</h1>
</center>
EOF

for i in $*
do
   makepage.sh $i $i $i
done

cat << EOF >> index.html

</body>
</html>
EOF

