Towards 2.0.5 YAZ.2.0.5.pre1
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Oct 2003 15:51:36 +0000 (15:51 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Oct 2003 15:51:36 +0000 (15:51 +0000)
configure.in
include/yaz/log.h
include/yaz/yaz-version.h
util/log.c
win/yaz.nsi
win/yaz.rc
yaz.spec.in

index 133e28f..ac5bdc5 100644 (file)
@@ -1,8 +1,8 @@
 dnl YAZ Toolkit, Index Data 1994-2003
 dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.115 2003-09-04 18:18:07 adam Exp $
+dnl $Id: configure.in,v 1.116 2003-10-09 15:51:36 adam Exp $
 AC_INIT(include/yaz/yaz-version.h)
-AM_INIT_AUTOMAKE(yaz, 2.0.4)
+AM_INIT_AUTOMAKE(yaz, 2.0.5)
 AM_MAINTAINER_MODE
 dnl
 AC_SUBST(READLINE_LIBS)
index ca2a36e..b17c4ae 100644 (file)
@@ -23,7 +23,7 @@
  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  * OF THIS SOFTWARE.
  *
- * $Id: log.h,v 1.11 2003-05-22 15:41:58 heikki Exp $
+ * $Id: log.h,v 1.12 2003-10-09 15:51:36 adam Exp $
  */
 
 #ifndef LOG_H
@@ -73,6 +73,7 @@ YAZ_EXPORT void log_event_start (void (*func)(int level, const char *msg, void *
 YAZ_EXPORT void log_event_end (void (*func)(int level, const char *msg, void *info),
        void *info);
 
+YAZ_EXPORT void yaz_log_reopen(void);
 YAZ_END_CDECL
 
 #endif
index 7681f3b..96734b1 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2003, Index Data.
  * See the file LICENSE for details.
  *
- * $Id: yaz-version.h,v 1.28 2003-09-04 18:18:07 adam Exp $
+ * $Id: yaz-version.h,v 1.29 2003-10-09 15:51:36 adam Exp $
  */
 
 /*
@@ -13,7 +13,7 @@
 #include <yaz/yconfig.h>
 
 #define YAZ_VERSION "2.0.4"
-#define YAZ_VERSIONL 0x020004
+#define YAZ_VERSIONL 0x020005
 
 #define YAZ_DATE 1
 
index 5a61699..90a2c5b 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2003, Index Data
  * See the file LICENSE for details.
  *
- * $Id: log.c,v 1.38 2003-05-22 13:15:08 heikki Exp $
+ * $Id: log.c,v 1.39 2003-10-09 15:51:36 adam Exp $
  */
 
 #if HAVE_CONFIG_H
@@ -40,6 +40,7 @@ static int l_level = LOG_DEFAULT_LEVEL;
 static FILE *l_file = NULL;
 static char l_prefix[512] = "";
 static char l_prefix2[512] = "";
+static char l_fname[512] = "";
 
 static struct {
     int mask;
@@ -70,12 +71,25 @@ FILE *yaz_log_file(void)
 
 void yaz_log_init_file (const char *fname)
 {
+    if (fname)
+    {
+       strncpy(l_fname, fname, sizeof(l_fname)-1);
+       l_fname[sizeof(l_fname)-1] = '\0';
+    }
+    else
+       l_fname[0] = '\0';
+    yaz_log_reopen();
+}
+
+void yaz_log_reopen(void)
+{
     FILE *new_file;
     if (!l_file)
         l_file = stderr;
-    if (!fname || !*fname)
+
+    if (!*l_fname)
        new_file=stderr;
-    else if (!(new_file = fopen(fname, "a")))
+    else if (!(new_file = fopen(l_fname, "a")))
         return;
     if (l_file != stderr)
     {
index dcd580c..d71c842 100644 (file)
@@ -1,6 +1,6 @@
-; $Id: yaz.nsi,v 1.24 2003-09-04 18:18:07 adam Exp $
+; $Id: yaz.nsi,v 1.25 2003-10-09 15:51:36 adam Exp $
 
-!define VERSION "2.0.4"
+!define VERSION "2.0.5"
 
 Name "YAZ"
 Caption "Index Data YAZ ${VERSION} Setup"
index d0b09e9..a311254 100644 (file)
@@ -54,8 +54,8 @@ END
 //
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,0,4,1
- PRODUCTVERSION 2,0,4,1
+ FILEVERSION 2,0,5,1
+ PRODUCTVERSION 2,0,5,1
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
@@ -73,14 +73,14 @@ BEGIN
             VALUE "Comments", "Z39.50 C Library\0"
             VALUE "CompanyName", "Index Data\0"
             VALUE "FileDescription", "YAZ Toolkit\0"
-            VALUE "FileVersion", "2, 0, 4, 1\0"
+            VALUE "FileVersion", "2, 0, 5, 1\0"
             VALUE "InternalName", "YAZ\0"
             VALUE "LegalCopyright", "Copyright © 1995-2003 Index Data\0"
             VALUE "LegalTrademarks", "\0"
             VALUE "OriginalFilename", "yaz.rc\0"
             VALUE "PrivateBuild", "\0"
             VALUE "ProductName", "Index Data YAZ Toolkit\0"
-            VALUE "ProductVersion", "2, 0, 4, 1\0"
+            VALUE "ProductVersion", "2, 0, 5, 1\0"
             VALUE "SpecialBuild", "\0"
         END
     END
index c85e95a..f70dd60 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Z39.50 Programs
 Name: yaz
 Version: @VERSION@
-Release: 2
+Release: 1
 Requires: libxml2 openssl readline libyaz = %{version}
 Copyright: YAZ License
 Group: Other