+ # Generate indes template from the DIRECTORY files
+ files=`find $SRC -name "DIRECTORY"`
+ for i in $files
+ do
+ # Get library name
+ name=`grep "@LIBRARY=" $i |cut -d= -f2`
+ fname=`grep "@FILENAME=" $i |cut -d= -f2`
+ links=`grep "@LINK=" $i |cut -d= -f2 |cut -d: -f1`
+
+ # Generate links to template file that can be included into various
+ # places on the webpage.
+ echo "<A HREF="$fname">$name</A><BR>" >>$DST/index.tmpl
+ for k in $links
+ do
+ n=`grep $k $i |cut -d= -f2 |cut -d: -f2`
+ echo "<LI><A HREF="$k">$n</A>" >>$DST/$fname.links
+ echo " > <A HREF="$k">$n</A><BR>" >>$DST/index.tmpl
+ done
+ done
+