+ n=`grep $k $i |cut -d= -f2 |cut -d: -f2-`
+ echo "<li><a href="$k">$n</a>" >>$DST/$fname.links
+ echo " <a href="$k"><img src="box2.gif" border="0" alt="">$n</a><br />" >>$DST/index.tmpl
+ done
+ done
+ # Now get the template for the link template, and generate the final index
+ # template file
+ temp=`find $SRC -name "INDEX.tmpl"`
+ sed -e "/@BODY@/ r $DST/index.tmpl" -e s/@BODY@//g $temp >$DST/index.tmpl.tmp
+ mv $DST/index.tmpl.tmp $DST/index.tmpl
+
+ # Copy all HTML files to destination
+ htmlfiles=`find $SRC -name "*.html"`
+ for i in $htmlfiles
+ do
+ cp $i /tmp/silcdoc_html.html
+ done
+ path=`pwd`
+ cd /tmp/silcdoc_html.html
+ htmlfiles=`find . -name "*.html" | cut -d/ -f2`
+ cd $path
+ for i in $htmlfiles
+ do
+ # Generate the details and the layout
+ f="/tmp/silcdoc_html.html/$i"
+ sh gen.sh $DST gen_index.php 1 $f $f
+ cp /tmp/silcdoc_html.html/$i $DST
+ done
+
+ # Generate cross reference files
+ path=`pwd`
+ cd /tmp/silcdoc.html
+ headers=`find . -name "silc*.h" |cut -d/ -f2 |cut -d. -f1`
+ cd $path
+ touch $DST/silcdoc_xref
+ for i in $headers
+ do
+ $ROBO /tmp/silcdoc.html/$i.h $DST/$i.html $TYPE GENXREF $DST/$i.xref
+ echo $DST/$i.xref >>$DST/silcdoc_xref
+ done
+
+ # Generate the actual detailed documentation
+ path=`pwd`
+ cd /tmp/silcdoc.html
+ headers=`find . -name "silc*.h" |cut -d/ -f2 |cut -d. -f1`
+ cd $path
+ for i in $headers
+ do
+ $ROBO /tmp/silcdoc.html/$i.h $DST/$i.html XREF $DST/silcdoc_xref $TYPE
+
+ # Generate the TOC file
+ sh gen.sh $DST gen_index.php 1 $DST/$i.html $DST/$i.html
+
+ # Generate the details and the layout
+ files=`find $DST -name ""$i"-*.html"`
+ for k in $files
+ do
+ sh gen.sh $DST gen_index.php 0 "$k" "$k"