From da48808e05e213346e08d1eadebed650ce4cca9b Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 22 Jan 2004 16:43:44 +0000 Subject: [PATCH] Do not create html files for main header in .h files. --- scripts/silcdoc/silcdoc | 7 +++---- util/robodoc/Source/generator.c | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/silcdoc/silcdoc b/scripts/silcdoc/silcdoc index 3bf1cccb..57bb9400 100755 --- a/scripts/silcdoc/silcdoc +++ b/scripts/silcdoc/silcdoc @@ -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` diff --git a/util/robodoc/Source/generator.c b/util/robodoc/Source/generator.c index 79a93467..632c2990 100644 --- a/util/robodoc/Source/generator.c +++ b/util/robodoc/Source/generator.c @@ -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); -- 2.43.0