#!/bin/sh

temp=/tmp/tempFiles$$

echo Creating page for Standard-Size Buttons.  Will be slow...
rm  index.html >/dev/null 2>&1
cp ../htmlBeginning index.html
echo "<h3>These files are in the buttons subdirectory</H3>" >>index.html
echo "<h3>Standard-Size Buttons</h3>" >>index.html
echo "<p>" >>index.html
for file in *.gif
do
   if egrep "^$file\$" $temp >/dev/null 2>&1
   then
	:
   else
	echo "<p>" >>index.html
	echo "<IMG SRC=\"$file\" ALIGN=Middle" >>index.html
	echo "	ALT=\"\"> <a href=\"$file\">buttons/$file</a>" >>index.html
	echo $file >>$temp
   fi
done

cat ../htmlEnding >>index.html
chmod 666 index.html

rm $temp
echo Done.
