#! /bin/sh
#
# pr2html --- produce an indexed list of files in HTML
#
# Author: Oscar Nierstrasz (June 25, 1993)
u='Usage: pr2html [t=
] ...'
case $# in
0 ) echo "$u" 1>& 2; exit ;;
esac
title="UNTITLED FILE LISTING"
for arg
do
case $arg in
t=* ) title=`echo "$arg" | sed 's/t=//'` ;;
-* ) echo "$u" 1>& 2; exit ;;
* ) files="$files $arg" ;;
esac
done
echo "$title"
echo "$title
"
echo ""
for f in $files
do
echo "- $f"
done
echo "
"
for f in $files
do
echo ""
pre $f
done