Index: /trunk/rtcm3torinex/rtcm3torinex.c
===================================================================
--- /trunk/rtcm3torinex/rtcm3torinex.c	(revision 2486)
+++ /trunk/rtcm3torinex/rtcm3torinex.c	(revision 2487)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.39 2010/03/05 11:11:06 stoecker Exp $
+  $Id$
   Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
 
@@ -55,5 +55,5 @@
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.39 $";
+static char revisionstr[] = "$Revision$";
 
 #ifndef COMPILEDATE
@@ -878,4 +878,17 @@
 }
 
+static void fixrevision(void)
+{
+  if(revisionstr[0] == '$')
+  {
+    char *a;
+    int i=sizeof(RTCM3TORINEX_VERSION); /* set version to 1.<revision> */
+    strcpy(revisionstr, RTCM3TORINEX_VERSION ".");
+    for(a = revisionstr+11; *a && *a != ' '; ++a)
+      revisionstr[i++] = *a;
+    revisionstr[i] = 0;
+  }
+}
+
 static int HandleRunBy(char *buffer, int buffersize, const char **u,
 int rinex3)
@@ -886,12 +899,5 @@
 
 #ifdef NO_RTCM3_MAIN
-  if(revisionstr[0] == '$')
-  {
-    char *a;
-    int i=0;
-    for(a = revisionstr+11; *a && *a != ' '; ++a)
-      revisionstr[i++] = *a;
-    revisionstr[i] = 0;
-  }
+  fixrevision();
 #endif
 
@@ -1694,5 +1700,5 @@
 
 #ifndef NO_RTCM3_MAIN
-static char datestr[]     = "$Date: 2010/03/05 11:11:06 $";
+static char datestr[]     = "$Date$";
 
 /* The string, which is send as agent in HTTP request */
@@ -2090,11 +2096,5 @@
   setbuf(stderr, 0);
 
-  {
-    char *a;
-    int i=0;
-    for(a = revisionstr+11; *a && *a != ' '; ++a)
-      revisionstr[i++] = *a;
-    revisionstr[i] = 0;
-  }
+  fixrevision();
 
   signal(SIGINT, signalhandler);
Index: /trunk/rtcm3torinex/rtcm3torinex.h
===================================================================
--- /trunk/rtcm3torinex/rtcm3torinex.h	(revision 2486)
+++ /trunk/rtcm3torinex/rtcm3torinex.h	(revision 2487)
@@ -4,5 +4,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.h,v 1.12 2010/03/05 11:11:06 stoecker Exp $
+  $Id$
   Copyright (C) 2005-2006 by Dirk Stöcker <stoecker@alberding.eu>
 
@@ -22,4 +22,6 @@
   or read http://www.gnu.org/licenses/gpl.txt
 */
+
+#define RTCM3TORINEX_VERSION "1.50"
 
 #include <stdio.h>
