From 9d07dcd98e06b1bc78e6665d4519b2255da98924 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 12 Aug 2001 15:01:12 +0000 Subject: [PATCH] updates. --- scripts/silcdoc/silcdoc | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/silcdoc/silcdoc b/scripts/silcdoc/silcdoc index 916006fe..b03eacb3 100755 --- a/scripts/silcdoc/silcdoc +++ b/scripts/silcdoc/silcdoc @@ -42,6 +42,26 @@ if [ "$TYPE" = "HTML" ]; then mkdir /tmp/silcdoc.html cp $headers /tmp/silcdoc.html + # 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 "$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 "   > $n
    " >>$DST/index.tmpl + done + done + # Generate the actual detailed documentation path=`pwd` cd /tmp/silcdoc.html @@ -66,26 +86,6 @@ if [ "$TYPE" = "HTML" ]; then rm -f $DST/$i_index.tmpl done - # 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 "> $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 "  > $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 -- 2.24.0