updates.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 12 Aug 2001 15:01:12 +0000 (15:01 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 12 Aug 2001 15:01:12 +0000 (15:01 +0000)
scripts/silcdoc/silcdoc

index 916006fec6e497d47cfb402170976d546db36dcb..b03eacb3c037ec0c16a384e8f7f5d78c05e62f1b 100755 (executable)
@@ -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 "<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 "&nbsp;&nbsp;&nbsp;> <A HREF="$k">$n</A><BR>" >>$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 "> <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 "&nbsp;&nbsp;> <A HREF="$k">$n</A><BR>" >>$DST/index.tmpl
-    done
-  done
-
   # Generate the index and TOC files from the DIRECTORY files
   files=`find $SRC -name "DIRECTORY"`
   for i in $files