+2004-09-14 Helge Hess <helge.hess@skyrix.com>
+
+ * WOMessage.m, WOCoreApplication.m, SoProductRegistry.m,
+ WOApplication+Builders.m: use makefile provided SOPE version for
+ resource lookup (v4.3.39)
+
2004-09-13 Helge Hess <helge.hess@opengroupware.org>
* OWResourceManager.m: deprecated -pathToComponentNamed:inFramework:
ifeq ($(FHS_INSTALL_ROOT),)
RESOURCES_DIR = $(GNUSTEP_RESOURCES)/NGObjWeb
else
-RESOURCES_DIR = $(FHS_INSTALL_ROOT)/share/sope-4.3/ngobjweb
+RESOURCES_DIR = $(FHS_INSTALL_ROOT)/share/sope-$(MAJOR_VERSION).$(MINOR_VERSION)/ngobjweb
endif
-libNGObjWeb_CPPFLAGS += -pipe -DCOMPILING_NGOBJWEB=1
-
libNGObjWeb_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
libNGObjWeb_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
# $Id: GNUmakefile.preamble 25 2004-08-20 23:01:07Z helge $
-ADDITIONAL_CPPFLAGS += -Wall -DCOMPILE_FOR_GSTEP_MAKE=1
+ADDITIONAL_CPPFLAGS += \
+ -Wall -DCOMPILE_FOR_GSTEP_MAKE=1 \
+ -DSOPE_MAJOR_VERSION=$(MAJOR_VERSION) \
+ -DSOPE_MINOR_VERSION=$(MINOR_VERSION) \
+ -DSOPE_SUBMINOR_VERSION=$(SUBMINOR_VERSION)
+
+libNGObjWeb_CPPFLAGS += -pipe -DCOMPILING_NGOBJWEB=1
+libNGObjWeb_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
SOPE_ROOT=../..
CORE_ROOT=$(SOPE_ROOT)/sope-core
-I$(CORE_ROOT)/NGExtensions \
-I$(SOPE_ROOT)/sope-mime
-libNGObjWeb_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
ifneq ($(GNUSTEP_BUILD_DIR),)
RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/..
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "NGHttp+WO.h"
#include <NGHttp/NGHttp.h>
# $Id: GNUmakefile 1 2004-08-20 10:08:27Z znek $
-include $(GNUSTEP_MAKEFILES)/common.make
+include ../subdirs.make
SUBPROJECT_NAME = SoObjects
# $Id$
-ADDITIONAL_INCLUDE_DIRS += \
- -I.. \
- -I../DynamicElements/ \
- -I../WebDAV/ \
- -I../.. \
- -I../../../sope-core \
- -I../../../sope-core/NGStreams \
- -I../../../sope-core/NGExtensions \
- -I../../../sope-xml
+ADDITIONAL_INCLUDE_DIRS += -I../WebDAV/
NSProcessInfo *pi;
NSArray *pathes;
NSBundle *bundle;
+ NSString *relPath;
unsigned i;
/* scan mail bundle & frameworks */
[self debugWithFormat:@"scanning for products ..."];
+#if !COCOA_Foundation_LIBRARY
+ relPath = @"Library/";
+#endif
+ relPath = [NSString stringWithFormat:@"%@SoProducts-%i.%i/", relPath,
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
for (i = 0; i < [pathes count]; i++) {
NSString *lPath;
BOOL isDir;
- lPath = [pathes objectAtIndex:i];
-#if !COCOA_Foundation_LIBRARY
- lPath = [lPath stringByAppendingPathComponent:@"Library"];
-#endif
- lPath = [lPath stringByAppendingPathComponent:@"SoProducts-4.3"];
+ lPath = [[pathes objectAtIndex:i] stringByAppendingPathComponent:relPath];
if (![fm fileExistsAtPath:lPath isDirectory:&isDir])
continue;
/* look into FHS pathes */
+ relPath = [NSString stringWithFormat:@"lib/sope-%i.%i/products/",
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
pathes = [NSArray arrayWithObjects:
- @"/usr/local/lib/sope-4.3/products/",
- @"/usr/lib/sope-4.3/products/",
+ [@"/usr/local/" stringByAppendingString:relPath],
+ [@"/usr/" stringByAppendingString:relPath],
nil];
for (i = 0; i < [pathes count]; i++) {
NSString *lPath;
# $Id$
-include $(GNUSTEP_MAKEFILES)/common.make
+include ../subdirs.make
SUBPROJECT_NAME = Templates
-# $Id$
+# compile settings
-ADDITIONAL_INCLUDE_DIRS += \
- -I.. \
- -I../DynamicElements/ \
- -I../.. \
- -I../../../sope-core \
- -I../../../sope-core/NGStreams \
- -I../../../sope-core/NGExtensions \
- -I../../../sope-xml
}
- (void)loadBuilderBundles {
+ // TODO: DUP to SoProductRegistry.m
NSFileManager *fm;
NSProcessInfo *pi;
NSArray *pathes;
+ NSString *relPath;
unsigned i;
/* scan library pathes */
[self debugWithFormat:@"scanning for builder bundles ..."];
+#if !COCOA_Foundation_LIBRARY
+ relPath = @"Library/";
+#endif
+ relPath = [NSString stringWithFormat:@"%@WOxElemBuilders-%i.%i/", relPath,
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
for (i = 0; i < [pathes count]; i++) {
NSString *lPath;
BOOL isDir;
- lPath = [pathes objectAtIndex:i];
-#if !COCOA_Foundation_LIBRARY
- lPath = [lPath stringByAppendingPathComponent:@"Library"];
-#endif
- lPath = [lPath stringByAppendingPathComponent:@"WOxElemBuilders-4.3"];
-
+ lPath = [[pathes objectAtIndex:i] stringByAppendingPathComponent:relPath];
if (![fm fileExistsAtPath:lPath isDirectory:&isDir])
continue;
if (!isDir)
/* look into FHS pathes */
+ relPath = [NSString stringWithFormat:@"lib/sope-%i.%i/wox-builders/",
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
pathes = [NSArray arrayWithObjects:
- @"/usr/local/lib/sope-4.3/wox-builders/",
- @"/usr/lib/sope-4.3/wox-builders/",
+ [@"/usr/local/" stringByAppendingString:relPath],
+ [@"/usr/" stringByAppendingString:relPath],
nil];
for (i = 0; i < [pathes count]; i++) {
NSString *lPath;
# version file
-SUBMINOR_VERSION:=38
+SUBMINOR_VERSION:=39
# v4.2.413 requires libSaxObjC v4.2.33
# v4.2.341 requires libNGExtensions v4.2.77
[ma addObject:apath];
}
[ma addObject:relPath];
- [ma addObject:@"/usr/local/share/sope-4.3/ngobjweb/"];
- [ma addObject:@"/usr/share/sope-4.3/ngobjweb/"];
+
+ relPath = [NSString stringWithFormat:@"share/sope-%i.%i/ngobjweb/",
+ SOPE_MAJOR_VERSION, SOPE_MINOR_VERSION];
+ [ma addObject:[@"/usr/local/" stringByAppendingString:relPath]];
+ [ma addObject:[@"/usr/" stringByAppendingString:relPath]];
return ma;
}
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id: WOMessage.m 4 2004-08-20 17:04:31Z helge $
#include <NGObjWeb/WOMessage.h>
#include <NGExtensions/NGHashMap.h>
--- /dev/null
+# common settings for SOPE subdirs
+
+include $(GNUSTEP_MAKEFILES)/common.make
+include ../../Version
+include ../Version
+
+ADDITIONAL_CPPFLAGS += \
+ -Wall -DCOMPILE_FOR_GSTEP_MAKE=1 \
+ -DSOPE_MAJOR_VERSION=$(MAJOR_VERSION) \
+ -DSOPE_MINOR_VERSION=$(MINOR_VERSION) \
+ -DSOPE_SUBMINOR_VERSION=$(SUBMINOR_VERSION)
+
+ADDITIONAL_INCLUDE_DIRS += \
+ -I.. \
+ -I../DynamicElements/ \
+ -I../.. \
+ -I../../../sope-core \
+ -I../../../sope-core/NGStreams \
+ -I../../../sope-core/NGExtensions \
+ -I../../../sope-xml