Added the 'ShowDependencies' default

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-12-17 11:54:54 +00:00
parent c449ab42b7
commit 964e068f39

View file

@ -232,6 +232,11 @@
Then generated html output may reference the class as being in Then generated html output may reference the class as being in
<code>/usr/doc/prj/Foo.html</code> <code>/usr/doc/prj/Foo.html</code>
</item> </item>
<item><strong>ShowDependencies</strong>
A boolean value which may be used to specify that the program should
log which files are being regenerated because of their dependencies
on other files.
</item>
<item><strong>SourceDirectory</strong> <item><strong>SourceDirectory</strong>
May be used to specify the directory to be searched for header files. May be used to specify the directory to be searched for header files.
If this is not specified, headers are looked for relative to the If this is not specified, headers are looked for relative to the
@ -301,6 +306,7 @@ main(int argc, char **argv, char **env)
AGSOutput *output; AGSOutput *output;
NSString *up = nil; NSString *up = nil;
NSString *prev = nil; NSString *prev = nil;
BOOL showDependencies = YES;
id o; id o;
CREATE_AUTORELEASE_POOL(outer); CREATE_AUTORELEASE_POOL(outer);
CREATE_AUTORELEASE_POOL(pool); CREATE_AUTORELEASE_POOL(pool);
@ -314,6 +320,7 @@ main(int argc, char **argv, char **env)
@"Untitled", @"Project", @"Untitled", @"Project",
nil]]; nil]];
showDependencies = [defs boolForKey: @"ShowDependencies"];
declared = [defs stringForKey: @"Declared"]; declared = [defs stringForKey: @"Declared"];
project = [defs stringForKey: @"Project"]; project = [defs stringForKey: @"Project"];
localProjects = [defs stringForKey: @"LocalProjects"]; localProjects = [defs stringForKey: @"LocalProjects"];
@ -332,19 +339,19 @@ main(int argc, char **argv, char **env)
headerDirectory = [defs stringForKey: @"HeaderDirectory"]; headerDirectory = [defs stringForKey: @"HeaderDirectory"];
if (headerDirectory == nil) if (headerDirectory == nil)
{ {
headerDirectory = @"."; headerDirectory = @"";
} }
sourceDirectory = [defs stringForKey: @"SourceDirectory"]; sourceDirectory = [defs stringForKey: @"SourceDirectory"];
if (sourceDirectory == nil) if (sourceDirectory == nil)
{ {
sourceDirectory = @"."; sourceDirectory = @"";
} }
documentationDirectory = [defs stringForKey: @"DocumentationDirectory"]; documentationDirectory = [defs stringForKey: @"DocumentationDirectory"];
if (documentationDirectory == nil) if (documentationDirectory == nil)
{ {
documentationDirectory = @"."; documentationDirectory = @"";
} }
proc = [NSProcessInfo processInfo]; proc = [NSProcessInfo processInfo];
@ -471,7 +478,7 @@ main(int argc, char **argv, char **env)
p = [k stringByDeletingLastPathComponent]; p = [k stringByDeletingLastPathComponent];
} }
[tmp setDirectory: p]; [tmp setDirectory: p];
[indexer mergeRefs: [tmp refs] override: NO]; [indexer mergeRefs: [tmp refs] override: YES];
RELEASE(tmp); RELEASE(tmp);
} }
} }
@ -559,6 +566,11 @@ main(int argc, char **argv, char **env)
if (gDate == nil || [sDate earlierDate: gDate] == gDate) if (gDate == nil || [sDate earlierDate: gDate] == gDate)
{ {
if (showDependencies == YES)
{
NSLog(@"%@: source %@, gsdoc %@ ==> regenerate",
file, sDate, gDate);
}
[parser reset]; [parser reset];
if (isSource == NO && isDocumentation == NO) if (isSource == NO && isDocumentation == NO)
@ -757,6 +769,11 @@ main(int argc, char **argv, char **env)
AGSIndex *locRefs; AGSIndex *locRefs;
AGSHtml *html; AGSHtml *html;
if (showDependencies == YES)
{
NSLog(@"%@: gsdoc %@, html %@ ==> regenerate",
file, gDate, hDate);
}
parser = [GSXMLParser parserWithContentsOfFile: gsdocfile]; parser = [GSXMLParser parserWithContentsOfFile: gsdocfile];
[parser substituteEntities: NO]; [parser substituteEntities: NO];
[parser doValidityChecking: YES]; [parser doValidityChecking: YES];