From: Pekka Riikonen Date: Sun, 12 Aug 2001 14:36:23 +0000 (+0000) Subject: updates. X-Git-Tag: 1.2.beta1~1931 X-Git-Url: http://git.silcnet.org/gitweb/?p=runtime.git;a=commitdiff_plain;h=9846400022a2dd66832a0c828a2a17e40777d7d7 updates. --- diff --git a/scripts/silcdoc/silcdoc b/scripts/silcdoc/silcdoc index c66ba886..db120ed6 100755 --- a/scripts/silcdoc/silcdoc +++ b/scripts/silcdoc/silcdoc @@ -66,9 +66,8 @@ if [ "$TYPE" = "HTML" ]; then rm -f $DST/$i_index.tmpl done - # Generate the index and TOC files from the DIRECTORY files + # Generate indes template from the DIRECTORY files files=`find $SRC -name "DIRECTORY"` - touch $DST/index.html.tmp for i in $files do # Get library name @@ -78,15 +77,25 @@ if [ "$TYPE" = "HTML" ]; then # Generate links to template file that can be included into various # places on the webpage. - echo ">> $name" >>$DST/index.tmpl - - # Generate links for this library + echo "> $name
" >>$DST/index.tmpl for k in $links do n=`grep $k $i |cut -d= -f2 |cut -d: -f2` echo "
  • $n" >>$DST/$fname.links - echo "&nbps; > $n" >>$DST/index.tmpl + echo "  > $n
    " >>$DST/index.tmpl done + done + + # Generate the index and TOC files 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 for this library sed -e "/@LINKS@/ r $DST/$fname.links" -e s/@LINKS@//g $i >$DST/$fname # Generate the TOC file for the library