cd ..
kdoc --outputdir kalamaris/docs/kalamaris --url file:/home/practica/kalamaris/kalamaris/docs kalamaris/*.h -n kalamaris
cd kalamaris
kdoc --outputdir docs/internal --url file:/home/practica/kalamaris/kalamaris/docs internal/*.h -n internal -l kalamaris
kdoc --outputdir docs/functions --url file:/home/practica/kalamaris/kalamaris/docs functions/*.h -n functions -l kalamaris
kdoc --outputdir docs/methods --url file:/home/practica/kalamaris/kalamaris/docs methods/*.h -n methods -l kalamaris

cd docs
echo > index.html '<html><head>
<title>KDE Class Documentation</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099"
alink= "#ffffff">
<h1>KDE Class Documentation</h1>
<hr>
<table>'


for dir in */; do
d="${dir%/}"
echo "<tr>
<td><a href=\"$d/index.html\"      ><b>$d</b></a></td>
<td><a href=\"$d/index-long.html\" >Annotated List</a></td>
<td><a href=\"$d/header-list.html\">Files</a></td>
<td><a href=\"$d/all-globals.html\">Globals</a></td>
<td><a href=\"$d/hier.html\"       >Hierachy</a></td>
</tr>
" >> index.html
done

echo "</table>
<hr>
Generated by $USER@$HOSTNAME on `date` using make-doc
</body></html>" >> index.html

#mv index.html docs
