Do not create html files for main header in .h files.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 22 Jan 2004 16:43:44 +0000 (16:43 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 22 Jan 2004 16:43:44 +0000 (16:43 +0000)
scripts/silcdoc/silcdoc
util/robodoc/Source/generator.c

index 3bf1cccb335fa04c4535a4b9a1693f6f953d5c8a..57bb940018db6a6450f29c73ab17856235d984f0 100755 (executable)
@@ -100,8 +100,8 @@ if [ "$TYPE" = "HTML" ]; then
 
   # Generate index template from the DIRECTORY files. The template for
   # the generated index template is INDEX.tmpl.
-  files=`find $SRC -name "DIRECTORY"`
-  for i in $files
+  dfiles=`find $SRC -name "DIRECTORY"`
+  for i in $dfiles
   do
     # Get library name
     name=`grep "@LIBRARY=" $i |cut -d=  -f2`
@@ -177,8 +177,7 @@ if [ "$TYPE" = "HTML" ]; then
   done
 
   # Generate the index and TOC files from the DIRECTORY files
-  files=`find $SRC -name "DIRECTORY"`
-  for i in $files
+  for i in $dfiles
   do
     # Get library name
     name=`grep "@LIBRARY=" $i |cut -d=  -f2`
index 79a93467cd9797a6b909331d9d208c111baadd3f..632c2990f94c880e285de6fc97da3534cfec23a6 100644 (file)
@@ -62,6 +62,12 @@ RB_Generate_Documentation (
 
       RB_Say ("generating documentation for \"%s\"\n", cur_header->name);
 
+#if 1
+     /* If MAIN_HEADER, do not create file */
+     if (cur_header->type == MAIN_HEADER)
+       continue;
+#endif
+
       if (output_mode == HTML)
         {
           sprintf(fname, "%s-%s.html", doc_base, cur_header->function_name);