
#!/bin/sh 
ls -1 *.html > xx

echo "ime html file-a"
read name
echo
if test  "$name" != "" 
then
        t_html=$name
else
        exec  make-html
fi
echo $t_html

echo "naslov"
read naslov
echo
if test  "$naslov" = "" 
then
        exec  make-html
fi
echo $naslov
echo "<html><head><title>"$naslov"</title></head><body>" >> $t_html
echo "<h2>"$naslov "</h2><p><h3><ul>" >> $t_html
for i in `cat xx`
do
echo $i

echo '<li><a href="'$i'">' >> $t_html
echo `head -1 $i| cut -c10-80 | cut -f1 -d" "` "</a>" >> $t_html


done
rm -f xx
echo "</h3></ul></html></body>" >> $t_html




