]> err.no Git - sope/commitdiff
get install version from makefile, minor log improvement
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 14 Sep 2004 12:14:07 +0000 (12:14 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 14 Sep 2004 12:14:07 +0000 (12:14 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@136 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-ical/iCalSaxDriver/ChangeLog
sope-ical/iCalSaxDriver/GNUmakefile
sope-ical/iCalSaxDriver/ICalSaxParser.m
sope-ical/iCalSaxDriver/Version
sope-ical/iCalSaxDriver/fhs.make

index c5ced8f81c7e5259ab4b7ceab9bd963ad5003fb4..451615e5fb214ed04df0830a1acf0301f7815983 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-14  Helge Hess  <helge.hess@skyrix.com>
+
+       * ICalSaxParser.m: minor improvement to logging (v4.3.15)
+
 2004-09-11  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * GNUmakefile.preamble: minor changes for inline compilation with
index cab03a0f045e72cc4fa23d86d880602e83bf8109..bbd92cda809d2e9d15b2141882c7cdb207abcf68 100644 (file)
@@ -1,10 +1,12 @@
 # $Id$
 
 include $(GNUSTEP_MAKEFILES)/common.make
+-include ../../Version
+-include ./Version
 
 BUNDLE_NAME        = iCalSaxDriver
 BUNDLE_EXTENSION   = .sax
-BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/SaxDrivers-4.3/
+BUNDLE_INSTALL_DIR = $(GNUSTEP_INSTALLATION_DIR)/Library/SaxDrivers-$(MAJOR_VERSION).$(MINOR_VERSION)/
 
 iCalSaxDriver_OBJC_FILES = \
        ICalSaxParser.m         \
index 6e24134d2f6417700207b8707abdddf5bad42984..c11cf7e04d46b77069856e513e227f115570d6f3 100644 (file)
@@ -18,7 +18,6 @@
   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.
 */
-// $Id$
 
 #include "ICalSaxParser.h"
 #include "NSString+ICal.h"
@@ -67,21 +66,22 @@ static Class StrClass = Nil;
 /* logging of unknown elements etc */
 
 - (void)logUnknownComponentKind:(icalcomponent *)_comp {
-  NSLog(@"%s: cannot process component kind %s",
+  NSLog(@"%s: cannot process component kind: '%s'",
         __PRETTY_FUNCTION__,
-        icalenum_component_kind_to_string(icalcomponent_isa(_comp)));
+        _comp
+        ?icalenum_component_kind_to_string(icalcomponent_isa(_comp)):"null");
 }
 
 - (void)logUnknownPropertyKind:(icalproperty *)_p {
-  NSLog(@"%s: cannot process property kind %s",
+  NSLog(@"%s: cannot process property kind: '%s'",
         __PRETTY_FUNCTION__,
-        icalenum_property_kind_to_string(icalproperty_isa(_p)));
+        _p ? icalenum_property_kind_to_string(icalproperty_isa(_p)) : "null");
 }
 
 - (void)logUnknownParameterKind:(icalparameter *)_pa {
-  NSLog(@"%s: cannot process parameter kind %s",
+  NSLog(@"%s: cannot process parameter kind: '%s'",
         __PRETTY_FUNCTION__,
-        icalparameter_kind_to_string(icalparameter_isa(_pa)));
+        _pa ? icalparameter_kind_to_string(icalparameter_isa(_pa)): "null");
 }
 
 /* walking */
index cc039aca8fe720e89b35bf8bb715cdccb043159e..c2d51c16ded5e768a416665b5008fba438a75a05 100644 (file)
@@ -1,3 +1,3 @@
-# $Id$
+# version
 
-SUBMINOR_VERSION:=14
+SUBMINOR_VERSION:=15
index ebaa53aeb44d1af7c2e54ecdd50118324ee55825..5660415198d149caa3def5ace6273cacbfb42513 100644 (file)
@@ -5,7 +5,7 @@
 ifneq ($(FHS_INSTALL_ROOT),)
 
 FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
-FHS_SAX_DIR=$(FHS_LIB_DIR)sope-4.3/saxdrivers/
+FHS_SAX_DIR=$(FHS_LIB_DIR)sope-$(MAJOR_VERSION).$(MINOR_VERSION)/saxdrivers/
 
 fhs-sax-dirs ::
        $(MKDIRS) $(FHS_SAX_DIR)