mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Simplify source directory stuff.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11994 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5f75304feb
commit
441ffcd257
3 changed files with 21 additions and 66 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Tools/autogsdoc.m: Simplify by removing SourceDirectory default.
|
||||||
|
* Source/GNUmakefile (Base_AGSDOC_FLAGS): Remove the SourceDirectory
|
||||||
|
option ... now assumed to be the current directory for simplicity.
|
||||||
|
|
||||||
2002-01-04 Richard Frith-Macdonald <rfm@gnu.org>
|
2002-01-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GNUmakefile (Base_AGSDOC_FLAGS): Fix to use
|
* Source/GNUmakefile (Base_AGSDOC_FLAGS): Fix to use
|
||||||
|
|
|
@ -306,7 +306,6 @@ NSAttributedString.h \
|
||||||
NSAutoreleasePool.h \
|
NSAutoreleasePool.h \
|
||||||
NSBitmapCharSet.h \
|
NSBitmapCharSet.h \
|
||||||
NSBundle.h \
|
NSBundle.h \
|
||||||
NSByteOrder.h \
|
|
||||||
NSCalendarDate.h \
|
NSCalendarDate.h \
|
||||||
NSCharacterSet.h \
|
NSCharacterSet.h \
|
||||||
NSClassDescription.h \
|
NSClassDescription.h \
|
||||||
|
@ -332,7 +331,6 @@ NSGeometry.h \
|
||||||
NSHashTable.h \
|
NSHashTable.h \
|
||||||
NSHost.h \
|
NSHost.h \
|
||||||
NSInvocation.h \
|
NSInvocation.h \
|
||||||
NSKeyValueCoding.h \
|
|
||||||
NSLock.h \
|
NSLock.h \
|
||||||
NSMapTable.h \
|
NSMapTable.h \
|
||||||
NSMethodSignature.h \
|
NSMethodSignature.h \
|
||||||
|
@ -342,7 +340,6 @@ NSNull.h \
|
||||||
NSNumberFormatter.h \
|
NSNumberFormatter.h \
|
||||||
NSObjCRuntime.h \
|
NSObjCRuntime.h \
|
||||||
NSObject.h \
|
NSObject.h \
|
||||||
NSPathUtilities.h \
|
|
||||||
NSPort.h \
|
NSPort.h \
|
||||||
NSPortCoder.h \
|
NSPortCoder.h \
|
||||||
NSPortMessage.h \
|
NSPortMessage.h \
|
||||||
|
@ -353,7 +350,6 @@ NSProxy.h \
|
||||||
NSRange.h \
|
NSRange.h \
|
||||||
NSRunLoop.h \
|
NSRunLoop.h \
|
||||||
NSScanner.h \
|
NSScanner.h \
|
||||||
NSSerialization.h \
|
|
||||||
NSSet.h \
|
NSSet.h \
|
||||||
NSString.h \
|
NSString.h \
|
||||||
NSTask.h \
|
NSTask.h \
|
||||||
|
@ -364,11 +360,18 @@ NSURL.h \
|
||||||
NSURLHandle.h \
|
NSURLHandle.h \
|
||||||
NSUndoManager.h \
|
NSUndoManager.h \
|
||||||
NSUserDefaults.h \
|
NSUserDefaults.h \
|
||||||
NSUtilities.h \
|
|
||||||
NSValue.h \
|
NSValue.h \
|
||||||
NSZone.h
|
NSZone.h
|
||||||
|
|
||||||
FOUNDATION_HEADERS = Foundation.h $(AUTOGSDOC_HEADERS) objc-load.h
|
FOUNDATION_HEADERS = \
|
||||||
|
Foundation.h \
|
||||||
|
NSByteOrder.h \
|
||||||
|
NSKeyValueCoding.h \
|
||||||
|
NSPathUtilities.h \
|
||||||
|
NSSerialization.h \
|
||||||
|
NSUtilities.h \
|
||||||
|
$(AUTOGSDOC_HEADERS) \
|
||||||
|
objc-load.h
|
||||||
|
|
||||||
|
|
||||||
UNICODE_HEADERS = \
|
UNICODE_HEADERS = \
|
||||||
|
@ -415,7 +418,6 @@ Base_HEADER_FILES_DIR = $(HEADER_DIR)
|
||||||
Base_AGSDOC_FILES = Base.gsdoc $(AUTOGSDOC_HEADERS)
|
Base_AGSDOC_FILES = Base.gsdoc $(AUTOGSDOC_HEADERS)
|
||||||
Base_AGSDOC_FLAGS = \
|
Base_AGSDOC_FLAGS = \
|
||||||
-HeaderDirectory ../Headers/Foundation \
|
-HeaderDirectory ../Headers/Foundation \
|
||||||
-SourceDirectory . \
|
|
||||||
-Declared Foundation \
|
-Declared Foundation \
|
||||||
-Standards YES \
|
-Standards YES \
|
||||||
-Up Base
|
-Up Base
|
||||||
|
|
|
@ -32,9 +32,6 @@
|
||||||
parse corresponding source files in the same directory (or the
|
parse corresponding source files in the same directory (or the
|
||||||
directory specified using the DocumentationDirectory default),
|
directory specified using the DocumentationDirectory default),
|
||||||
and produce gsdoc files as output.<br />
|
and produce gsdoc files as output.<br />
|
||||||
If you list one or more source (.m) files after a header file,
|
|
||||||
the tool will parse those files to find documentation for the
|
|
||||||
things declared in the preceeding header.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Even without any human assistance, this tool will produce skeleton
|
Even without any human assistance, this tool will produce skeleton
|
||||||
|
@ -256,13 +253,6 @@
|
||||||
is part of GNUstep and possibly complies with the OpenStep standard
|
is part of GNUstep and possibly complies with the OpenStep standard
|
||||||
or implements MacOS-X compatible methods.
|
or implements MacOS-X compatible methods.
|
||||||
</item>
|
</item>
|
||||||
<item><strong>SourceDirectory</strong>
|
|
||||||
May be used to specify the directory to be searched for source
|
|
||||||
(anything other than <code>.h</code> files ... which are controlled
|
|
||||||
by the HeaderDirectory default).<br />
|
|
||||||
If this is not specified, sources are looked for relative to the
|
|
||||||
current directory or using absolute path names if given.
|
|
||||||
</item>
|
|
||||||
<item><strong>SystemProjects</strong>
|
<item><strong>SystemProjects</strong>
|
||||||
This value is used to control the automatic inclusion of system
|
This value is used to control the automatic inclusion of system
|
||||||
external projects into the indexing system for generation of
|
external projects into the indexing system for generation of
|
||||||
|
@ -340,7 +330,6 @@ main(int argc, char **argv, char **env)
|
||||||
NSString *documentationDirectory;
|
NSString *documentationDirectory;
|
||||||
NSString *declared;
|
NSString *declared;
|
||||||
NSString *headerDirectory;
|
NSString *headerDirectory;
|
||||||
NSString *sourceDirectory;
|
|
||||||
NSString *project;
|
NSString *project;
|
||||||
NSDictionary *originalIndex;
|
NSDictionary *originalIndex;
|
||||||
AGSIndex *projectRefs;
|
AGSIndex *projectRefs;
|
||||||
|
@ -406,12 +395,6 @@ main(int argc, char **argv, char **env)
|
||||||
headerDirectory = @"";
|
headerDirectory = @"";
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceDirectory = [defs stringForKey: @"SourceDirectory"];
|
|
||||||
if (sourceDirectory == nil)
|
|
||||||
{
|
|
||||||
sourceDirectory = @"";
|
|
||||||
}
|
|
||||||
|
|
||||||
documentationDirectory = [defs stringForKey: @"DocumentationDirectory"];
|
documentationDirectory = [defs stringForKey: @"DocumentationDirectory"];
|
||||||
if (documentationDirectory == nil)
|
if (documentationDirectory == nil)
|
||||||
{
|
{
|
||||||
|
@ -551,16 +534,7 @@ main(int argc, char **argv, char **env)
|
||||||
*/
|
*/
|
||||||
if ([arg isAbsolutePath] == NO)
|
if ([arg isAbsolutePath] == NO)
|
||||||
{
|
{
|
||||||
if ([[arg pathExtension] isEqual: @"m"] == YES)
|
if ([[arg pathExtension] isEqual: @"h"] == YES)
|
||||||
{
|
|
||||||
if ([sourceDirectory length] > 0)
|
|
||||||
{
|
|
||||||
arg = [sourceDirectory stringByAppendingPathComponent:
|
|
||||||
[arg lastPathComponent]];
|
|
||||||
[a replaceObjectAtIndex: 0 withObject: arg];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if ([headerDirectory length] > 0)
|
if ([headerDirectory length] > 0)
|
||||||
{
|
{
|
||||||
|
@ -570,19 +544,6 @@ main(int argc, char **argv, char **env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 1; i < [a count]; i++)
|
|
||||||
{
|
|
||||||
arg = [a objectAtIndex: i];
|
|
||||||
if ([arg isAbsolutePath] == NO)
|
|
||||||
{
|
|
||||||
if ([sourceDirectory length] > 0)
|
|
||||||
{
|
|
||||||
arg = [sourceDirectory stringByAppendingPathComponent:
|
|
||||||
[arg lastPathComponent]];
|
|
||||||
[a replaceObjectAtIndex: i withObject: arg];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gsdocfile = [documentationDirectory
|
gsdocfile = [documentationDirectory
|
||||||
stringByAppendingPathComponent: file];
|
stringByAppendingPathComponent: file];
|
||||||
|
@ -749,15 +710,12 @@ main(int argc, char **argv, char **env)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Our source file is a gsdoc file ... so it may be located
|
* Our source file is a gsdoc file ... so it may be located
|
||||||
* in the source (input) directory rather than the documentation
|
* in the current (input) directory rather than the documentation
|
||||||
* (output) directory.
|
* (output) directory.
|
||||||
*/
|
*/
|
||||||
if ([mgr isReadableFileAtPath: gsdocfile] == NO)
|
if ([mgr isReadableFileAtPath: gsdocfile] == NO)
|
||||||
{
|
{
|
||||||
gsdocfile = [sourceDirectory
|
gsdocfile = [file stringByAppendingPathExtension: @"gsdoc"];
|
||||||
stringByAppendingPathComponent: file];
|
|
||||||
gsdocfile = [gsdocfile stringByAppendingPathExtension:
|
|
||||||
@"gsdoc"];
|
|
||||||
}
|
}
|
||||||
if (ignoreDependencies == NO)
|
if (ignoreDependencies == NO)
|
||||||
{
|
{
|
||||||
|
@ -1031,18 +989,7 @@ main(int argc, char **argv, char **env)
|
||||||
if ([mgr isReadableFileAtPath: gsdocfile] == NO
|
if ([mgr isReadableFileAtPath: gsdocfile] == NO
|
||||||
&& [arg hasSuffix: @".gsdoc"] == YES)
|
&& [arg hasSuffix: @".gsdoc"] == YES)
|
||||||
{
|
{
|
||||||
NSString *sdir = [arg stringByDeletingLastPathComponent];
|
gsdocfile = [file stringByAppendingPathExtension: @"gsdoc"];
|
||||||
|
|
||||||
if ([sdir length] == 0)
|
|
||||||
{
|
|
||||||
sdir = sourceDirectory;
|
|
||||||
}
|
|
||||||
else if ([sdir isAbsolutePath] == NO)
|
|
||||||
{
|
|
||||||
sdir = [sourceDirectory stringByAppendingPathComponent: sdir];
|
|
||||||
}
|
|
||||||
gsdocfile = [sdir stringByAppendingPathComponent: file];
|
|
||||||
gsdocfile = [gsdocfile stringByAppendingPathExtension: @"gsdoc"];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ignoreDependencies == NO)
|
if (ignoreDependencies == NO)
|
||||||
|
@ -1134,12 +1081,12 @@ main(int argc, char **argv, char **env)
|
||||||
}
|
}
|
||||||
file = [file lastPathComponent];
|
file = [file lastPathComponent];
|
||||||
|
|
||||||
src = [sourceDirectory stringByAppendingPathComponent: file];
|
src = file;
|
||||||
dst = [documentationDirectory stringByAppendingPathComponent: file];
|
dst = [documentationDirectory stringByAppendingPathComponent: file];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we can't find the file in the source directory, assume
|
* If we can't find the file in the source directory, assume
|
||||||
* it is in the ddocumentation directory already, and just needs
|
* it is in the documentation directory already, and just needs
|
||||||
* cross-refs rebuilding.
|
* cross-refs rebuilding.
|
||||||
*/
|
*/
|
||||||
if ([mgr isReadableFileAtPath: src] == NO)
|
if ([mgr isReadableFileAtPath: src] == NO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue