#!/bin/sh
# Make HTML links to each file in this directory

prefix=`dirname $0`
cd `dirname $0`
echo "<ul>"
for f in `ls -dr [0-9]*.html`
do
	echo "<li><a href=\"$prefix/$f\">"`echo "$f" | awk -F. '{print $1}'`", 
		"`grep "<h1>" "$f" | head -1 | sed -e 's/.*<h1>//g' | sed -e 's/<[^>]*>//g'`"</a> 
		modified "`stat --format "%y" "$f" | awk '{print $1}'`
done
echo "</ul>"
