#!/bin/sh



INDEXDIR=.
INDEXPAGE=$INDEXDIR/index.htm
PAGES=`ls -1 $INDEXDIR`
IFS='
'

MYHEADER="BARCODE Info"
MYTITLE="Index of $INDEXDIR"
echo "<HTML><HEAD><TITLE>$MYTITLE</TITLE></HEAD><BODY>"  > $INDEXPAGE
echo "<body style=\"color: rgb(0, 0, 0); background-color: rgb(233, 233, 243);\" \
 link=\"#000099\" vlink="#990099" alink="#000099">" >> $INDEXPAGE
echo "<font face=\"verdana\">" >> $INDEXPAGE
echo "<H1>$MYHEADER</H1>" >> $INDEXPAGE

for i in $PAGES
do
if [ -f $i -a "$i."!="index.htm." ] ; then 
PAGENAME=`echo "$i" | sed -e s/\.htm//g`
echo "<A HREF=\"$i\">$PAGENAME</A><BR>" >> $INDEXPAGE
else
	echo "Skipping dir"
fi
done
echo "</font>" >> $INDEXPAGE
echo "</BODY>/<HTML>"  >> $INDEXPAGE




