+ # 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