From 3836510fe7440c4426658c1f9d12a759373c2da7 Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 20 Mar 2005 20:20:58 +0000 Subject: [PATCH] removed unused headers git-svn-id: http://svn.opengroupware.org/SOGo/trunk@631 d1b88da0-ebda-0310-925b-ed51d893ca5b --- OGoContentStore/GNUmakefile | 11 +-- OGoContentStore/OCSFieldInfo.h | 31 ------ OGoContentStore/OCSFolder.h | 31 ------ OGoContentStore/OCSFolderManager.h | 31 ------ OGoContentStore/OCSFolderType.h | 31 ------ OGoContentStore/ocs_cat.m | 123 ------------------------ OGoContentStore/ocs_gensql.m | 114 ---------------------- OGoContentStore/ocs_ls.m | 140 ---------------------------- OGoContentStore/ocs_mkdir.m | 127 ------------------------- OGoContentStore/ocs_recreatequick.m | 122 ------------------------ 10 files changed, 3 insertions(+), 758 deletions(-) delete mode 100644 OGoContentStore/OCSFieldInfo.h delete mode 100644 OGoContentStore/OCSFolder.h delete mode 100644 OGoContentStore/OCSFolderManager.h delete mode 100644 OGoContentStore/OCSFolderType.h delete mode 100644 OGoContentStore/ocs_cat.m delete mode 100644 OGoContentStore/ocs_gensql.m delete mode 100644 OGoContentStore/ocs_ls.m delete mode 100644 OGoContentStore/ocs_mkdir.m delete mode 100644 OGoContentStore/ocs_recreatequick.m diff --git a/OGoContentStore/GNUmakefile b/OGoContentStore/GNUmakefile index dc066349..6e6da4f3 100644 --- a/OGoContentStore/GNUmakefile +++ b/OGoContentStore/GNUmakefile @@ -10,14 +10,9 @@ TYPEMODELS_DIR = $(GNUSTEP_USER_ROOT)/Library/OCSTypeModels/ libOGoContentStore_HEADER_FILES_DIR = . libOGoContentStore_HEADER_FILES_INSTALL_DIR = /OGoContentStore -libOGoContentStore_HEADER_FILES += \ - iCalRepeatableEntityObject+OCS.h \ - \ - OCSFieldInfo.h \ - OCSFolder.h \ - OCSFolderManager.h \ - OCSFolderType.h \ - OCSiCalFieldExtractor.h \ +#libOGoContentStore_HEADER_FILES += \ +# iCalRepeatableEntityObject+OCS.h \ +# OCSiCalFieldExtractor.h \ libOGoContentStore_OBJC_FILES += \ iCalRepeatableEntityObject+OCS.m \ diff --git a/OGoContentStore/OCSFieldInfo.h b/OGoContentStore/OCSFieldInfo.h deleted file mode 100644 index d90145e7..00000000 --- a/OGoContentStore/OCSFieldInfo.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (C) 2004-2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#ifndef __OGoContentStore_OCSFieldInfo_H__ -#define __OGoContentStore_OCSFieldInfo_H__ - -#warning DEPRECATED: use GCSFieldInfo instead of OCSFieldInfo - -#include - -#define OCSFieldInfo GCSFieldInfo - -#endif /* __OGoContentStore_OCSFieldInfo_H__ */ diff --git a/OGoContentStore/OCSFolder.h b/OGoContentStore/OCSFolder.h deleted file mode 100644 index 37f6b562..00000000 --- a/OGoContentStore/OCSFolder.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (C) 2004-2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#ifndef __OGoContentStore_OCSFolder_H__ -#define __OGoContentStore_OCSFolder_H__ - -#warning DEPRECATED: use GCSFolder instead of OCSFolder - -#include - -#define OCSFolder GCSFolder - -#endif /* __OGoContentStore_OCSFolder_H__ */ diff --git a/OGoContentStore/OCSFolderManager.h b/OGoContentStore/OCSFolderManager.h deleted file mode 100644 index 6893892f..00000000 --- a/OGoContentStore/OCSFolderManager.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (C) 2004-2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#ifndef __OGoContentStore_OCSFolderManager_H__ -#define __OGoContentStore_OCSFolderManager_H__ - -#warning DEPRECATED: use GCSFolderManager instead of OCSFolderManager - -#include - -#define OCSFolderManager GCSFolderManager - -#endif /* __OGoContentStore_OCSFolderManager_H__ */ diff --git a/OGoContentStore/OCSFolderType.h b/OGoContentStore/OCSFolderType.h deleted file mode 100644 index ad103121..00000000 --- a/OGoContentStore/OCSFolderType.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (C) 2004-2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#ifndef __OGoContentStore_OCSFolderType_H__ -#define __OGoContentStore_OCSFolderType_H__ - -#warning DEPRECATED: use GCSFolderType instead of OCSFolderType - -#include - -#define OCSFolderType GCSFolderType - -#endif /* __OGoContentStore_OCSFolderType_H__ */ diff --git a/OGoContentStore/ocs_cat.m b/OGoContentStore/ocs_cat.m deleted file mode 100644 index 4e76111a..00000000 --- a/OGoContentStore/ocs_cat.m +++ /dev/null @@ -1,123 +0,0 @@ -/* - Copyright (C) 2004 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ -// $Id$ - -#import - -@class NSUserDefaults, NSArray; -@class OCSFolderManager; - -@interface Tool : NSObject -{ - NSUserDefaults *ud; - OCSFolderManager *folderManager; -} - -+ (int)runWithArgs:(NSArray *)_args; -- (int)run; - -@end - -#include -#include -#include "common.h" - -@implementation Tool - -- (id)init { - if ((self = [super init])) { - self->ud = [[NSUserDefaults standardUserDefaults] retain]; - self->folderManager = [[OCSFolderManager defaultFolderManager] retain]; - } - return self; -} -- (void)dealloc { - [self->ud release]; - [self->folderManager release]; - [super dealloc]; -} - -/* operation */ - -- (int)runOnPath:(NSString *)_path { - OCSFolder *folder; - NSString *dirname, *filename; - NSString *content; - - dirname = [_path stringByDeletingLastPathComponent]; - filename = [_path lastPathComponent]; - - if ((folder = [self->folderManager folderAtPath:dirname]) == nil) { - [self logWithFormat:@"did not find folder for file: '%@'", dirname]; - return 1; - } - - if ((content = [folder fetchContentWithName:filename]) == nil) { - [self logWithFormat:@"did not find file: '%@'", _path]; - return 1; - } - - printf("%s\n", [content cString]); - - return 0; -} - -- (int)run { - NSEnumerator *e; - NSString *path; - - [self logWithFormat:@"manager: %@", self->folderManager]; - - if (![self->folderManager canConnect]) { - [self logWithFormat:@"cannot connect folder-info database!"]; - return 1; - } - - e = [[[NSProcessInfo processInfo] argumentsWithoutDefaults] - objectEnumerator]; - [e nextObject]; // skip tool name - - while ((path = [e nextObject])) - [self runOnPath:path]; - - return 0; -} -+ (int)runWithArgs:(NSArray *)_args { - return [(Tool *)[[[self alloc] init] autorelease] run]; -} - -@end /* Tool */ - -int main(int argc, char **argv, char **env) { - NSAutoreleasePool *pool; - int rc; - - pool = [[NSAutoreleasePool alloc] init]; -#if LIB_FOUNDATION_LIBRARY - [NSProcessInfo initializeWithArguments:argv count:argc environment:env]; -#endif - - rc = [Tool runWithArgs: - [[NSProcessInfo processInfo] argumentsWithoutDefaults]]; - - [pool release]; - return rc; -} diff --git a/OGoContentStore/ocs_gensql.m b/OGoContentStore/ocs_gensql.m deleted file mode 100644 index a4c37868..00000000 --- a/OGoContentStore/ocs_gensql.m +++ /dev/null @@ -1,114 +0,0 @@ -/* - Copyright (C) 2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#import - -@class NSUserDefaults, NSArray; -@class OCSFolderManager; - -@interface Tool : NSObject -{ - NSUserDefaults *ud; -} - -+ (int)runWithArgs:(NSArray *)_args; -- (int)run; - -@end - -#include -#include "common.h" - -@implementation Tool - -- (id)init { - if ((self = [super init])) { - self->ud = [[NSUserDefaults standardUserDefaults] retain]; - } - return self; -} -- (void)dealloc { - [self->ud release]; - [super dealloc]; -} - -/* operation */ - -- (int)runOnTable:(NSString *)_tableName typeName:(NSString *)_typeName { - OCSFolderType *folderType; - - if ((folderType = [OCSFolderType folderTypeWithName:_typeName]) != nil) { - NSString *s; - - s = [folderType sqlQuickCreateWithTableName:_tableName]; - - fwrite([s cString], 1, [s cStringLength], stdout); - printf("\n"); - } - else { - fprintf(stderr, "ERROR: did not find OCS type: '%s'\n", - [_typeName cString]); - } - - return 0; -} - -- (int)run { - NSEnumerator *e; - NSString *tableName, *typeName; - - e = [[[NSProcessInfo processInfo] argumentsWithoutDefaults] - objectEnumerator]; - [e nextObject]; // skip tool name - - while ((tableName = [e nextObject]) != nil) { - typeName = [e nextObject]; - if (typeName == nil) { - [self logWithFormat:@"got tablename '%@' but no type?!", tableName]; - break; - } - - [self runOnTable:tableName typeName:typeName]; - } - - return 0; -} -+ (int)runWithArgs:(NSArray *)_args { - return [(Tool *)[[[self alloc] init] autorelease] run]; -} - -@end /* Tool */ - -int main(int argc, char **argv, char **env) { - NSAutoreleasePool *pool; - int rc; - - pool = [[NSAutoreleasePool alloc] init]; -#if LIB_FOUNDATION_LIBRARY - [NSProcessInfo initializeWithArguments:argv count:argc environment:env]; -#endif - - rc = [Tool runWithArgs: - [[NSProcessInfo processInfo] argumentsWithoutDefaults]]; - - [pool release]; - return rc; -} diff --git a/OGoContentStore/ocs_ls.m b/OGoContentStore/ocs_ls.m deleted file mode 100644 index 73c6fe72..00000000 --- a/OGoContentStore/ocs_ls.m +++ /dev/null @@ -1,140 +0,0 @@ -/* - Copyright (C) 2004-2005 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ - -#import - -@class NSUserDefaults, NSArray; -@class OCSFolderManager; - -@interface Tool : NSObject -{ - NSUserDefaults *ud; - OCSFolderManager *folderManager; -} - -+ (int)runWithArgs:(NSArray *)_args; -- (int)run; - -@end - -#include -#include -#include "common.h" - -@implementation Tool - -- (id)init { - if ((self = [super init])) { - self->ud = [[NSUserDefaults standardUserDefaults] retain]; - self->folderManager = [[OCSFolderManager defaultFolderManager] retain]; - } - return self; -} -- (void)dealloc { - [self->ud release]; - [self->folderManager release]; - [super dealloc]; -} - -/* operation */ - -- (int)runOnPath:(NSString *)_path { - NSArray *subfolders; - unsigned i, count; - OCSFolder *folder; - - [self logWithFormat:@"ls path: '%@'", _path]; - -#if 0 // we do not necessarily need the whole hierarchy - if (![self->folderManager folderExistsAtPath:_path]) - [self logWithFormat:@"folder does not exist: '%@'", _path]; -#endif - - subfolders = [self->folderManager - listSubFoldersAtPath:_path - recursive:[ud boolForKey:@"r"]]; - if (subfolders == nil) { - [self logWithFormat:@"cannot list folder: '%@'", _path]; - return 1; - } - - for (i = 0, count = [subfolders count]; i < count; i++) { - printf("%s\n", [[subfolders objectAtIndex:i] cString]); - } - - folder = [self->folderManager folderAtPath:_path]; - - if ([folder isNotNull]) { - NSLog(@"folder: %@", folder); - - NSLog(@" can%s connect store: %@", [folder canConnectStore] ? "" : "not", - [[folder location] absoluteString]); - NSLog(@" can%s connect quick: %@", [folder canConnectQuick] ? "" : "not", - [[folder quickLocation] absoluteString]); - } - else { - NSLog(@"ERROR: could not create folder object for path: '%@'", _path); - } - - return 0; -} - -- (int)run { - NSEnumerator *e; - NSString *path; - - [self logWithFormat:@"manager: %@", self->folderManager]; - - if (![self->folderManager canConnect]) { - [self logWithFormat:@"cannot connect folder-info database!"]; - return 1; - } - - e = [[[NSProcessInfo processInfo] argumentsWithoutDefaults] - objectEnumerator]; - [e nextObject]; // skip tool name - - while ((path = [e nextObject]) != nil) - [self runOnPath:path]; - - return 0; -} -+ (int)runWithArgs:(NSArray *)_args { - return [(Tool *)[[[self alloc] init] autorelease] run]; -} - -@end /* Tool */ - -int main(int argc, char **argv, char **env) { - NSAutoreleasePool *pool; - int rc; - - pool = [[NSAutoreleasePool alloc] init]; -#if LIB_FOUNDATION_LIBRARY - [NSProcessInfo initializeWithArguments:argv count:argc environment:env]; -#endif - - rc = [Tool runWithArgs: - [[NSProcessInfo processInfo] argumentsWithoutDefaults]]; - - [pool release]; - return rc; -} diff --git a/OGoContentStore/ocs_mkdir.m b/OGoContentStore/ocs_mkdir.m deleted file mode 100644 index ffffac8d..00000000 --- a/OGoContentStore/ocs_mkdir.m +++ /dev/null @@ -1,127 +0,0 @@ -/* - Copyright (C) 2004 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ -// $Id$ - -#import - -@class NSUserDefaults, NSArray; -@class OCSFolderManager; - -@interface Tool : NSObject -{ - NSUserDefaults *ud; - OCSFolderManager *folderManager; -} - -+ (int)runWithArgs:(NSArray *)_args; -- (int)run; - -@end - -#include -#include -#include "common.h" - -@implementation Tool - -- (id)init { - if ((self = [super init])) { - self->ud = [[NSUserDefaults standardUserDefaults] retain]; - self->folderManager = [[OCSFolderManager defaultFolderManager] retain]; - } - return self; -} -- (void)dealloc { - [self->ud release]; - [self->folderManager release]; - [super dealloc]; -} - -/* operation */ - -- (int)runOnPath:(NSString *)_path type:(NSString *)_type { - NSException *error; - - [self logWithFormat:@"mkdir %@ at path: '%@'", _type, _path]; - - if ([self->folderManager folderExistsAtPath:_path]) { - [self logWithFormat:@"folder already exist at path: '%@'", _path]; - return 1; - } - - if ((error = [self->folderManager createFolderOfType:_type atPath:_path])) { - [self logWithFormat:@"creation of folder %@ at %@ failed: %@", - _type, _path, error]; - return 1; - } - - if ([self->folderManager folderExistsAtPath:_path]) - [self logWithFormat:@"CREATED."]; - else - [self logWithFormat:@"cannot find fresh folder?"]; - - return 0; -} - -- (int)run { - NSEnumerator *e; - NSString *type; - NSString *path; - - [self logWithFormat:@"manager: %@", self->folderManager]; - - if (![self->folderManager canConnect]) { - [self logWithFormat:@"cannot connect folder-info database!"]; - return 1; - } - - e = [[[NSProcessInfo processInfo] argumentsWithoutDefaults] - objectEnumerator]; - [e nextObject]; // skip tool name - - type = [[[e nextObject] copy] autorelease]; - - while ((path = [e nextObject])) - [self runOnPath:path type:type]; - - return 0; -} -+ (int)runWithArgs:(NSArray *)_args { - return [(Tool *)[[[self alloc] init] autorelease] run]; -} - -@end /* Tool */ - -int main(int argc, char **argv, char **env) { - NSAutoreleasePool *pool; - int rc; - - pool = [[NSAutoreleasePool alloc] init]; -#if LIB_FOUNDATION_LIBRARY - [NSProcessInfo initializeWithArguments:argv count:argc environment:env]; -#endif - - rc = [Tool runWithArgs: - [[NSProcessInfo processInfo] argumentsWithoutDefaults]]; - - [pool release]; - return rc; -} diff --git a/OGoContentStore/ocs_recreatequick.m b/OGoContentStore/ocs_recreatequick.m deleted file mode 100644 index f3889e95..00000000 --- a/OGoContentStore/ocs_recreatequick.m +++ /dev/null @@ -1,122 +0,0 @@ -/* - Copyright (C) 2004 SKYRIX Software AG - - This file is part of OpenGroupware.org. - - OGo is free software; you can redistribute it and/or modify it under - the terms of the GNU Lesser General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - OGo is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with OGo; see the file COPYING. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. -*/ -// $Id: ocs_mkdir.m 113 2004-06-30 11:26:54Z znek $ - -#import - -@class NSUserDefaults, NSArray; -@class OCSFolderManager; - -@interface Tool : NSObject -{ - NSUserDefaults *ud; - OCSFolderManager *folderManager; -} - -+ (int)runWithArgs:(NSArray *)_args; -- (int)run; - -@end - -#include -#include -#include "common.h" - -@implementation Tool - -- (id)init { - if ((self = [super init])) { - self->ud = [[NSUserDefaults standardUserDefaults] retain]; - self->folderManager = [[OCSFolderManager defaultFolderManager] retain]; - } - return self; -} -- (void)dealloc { - [self->ud release]; - [self->folderManager release]; - [super dealloc]; -} - -/* operation */ - -- (int)runOnPath:(NSString *)_path { - OCSFolder *folder; - - [self logWithFormat:@"update quick from store at path: '%@'", _path]; - - if (![self->folderManager folderExistsAtPath:_path]) { - [self logWithFormat:@"no folder exist at path: '%@'", _path]; - return 1; - } - - if ((folder = [self->folderManager folderAtPath:_path]) == nil) { - [self logWithFormat:@"got no folder object for path: '%@'", _path]; - return 2; - } - [self logWithFormat:@" folder: %@", folder]; - - // TODO: - [self logWithFormat:@" should recreate folder .."]; - - return 0; -} - -- (int)run { - NSEnumerator *e; - NSString *path; - - [self logWithFormat:@"manager: %@", self->folderManager]; - - if (![self->folderManager canConnect]) { - [self logWithFormat:@"cannot connect folder-info database!"]; - return 1; - } - - e = [[[NSProcessInfo processInfo] argumentsWithoutDefaults] - objectEnumerator]; - [e nextObject]; // skip tool name - - while ((path = [e nextObject])) - [self runOnPath:path]; - - return 0; -} -+ (int)runWithArgs:(NSArray *)_args { - return [(Tool *)[[[self alloc] init] autorelease] run]; -} - -@end /* Tool */ - -int main(int argc, char **argv, char **env) { - NSAutoreleasePool *pool; - int rc; - - pool = [[NSAutoreleasePool alloc] init]; -#if LIB_FOUNDATION_LIBRARY - [NSProcessInfo initializeWithArguments:argv count:argc environment:env]; -#endif - - rc = [Tool runWithArgs: - [[NSProcessInfo processInfo] argumentsWithoutDefaults]]; - - [pool release]; - return rc; -} -- 2.39.5