]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
automatic $ not really supported by git, changed to manual mode using #define.....
authorLudwig Maier <lmaier@brett.e12.ph.tum.de>
Fri, 24 May 2013 12:58:58 +0000 (14:58 +0200)
committerLudwig Maier <lmaier@brett.e12.ph.tum.de>
Fri, 24 May 2013 12:58:58 +0000 (14:58 +0200)
libtrbnet/trbcmd.c
libtrbnet/trbdhcp.c
libtrbnet/trbflash.c
libtrbnet/trbnet.c
trbnetd/server/trbnetd.c
trbnetd/trbnetrpc.c
trbrich/pulser.c
trbrich/trb_i2c.c
trbrich/trbrichcmd.c

index 87855901612de814454589ece51853b29cc58d5b..ffa4909a0392c7ccb3503761121697fb7d88bb55 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBCMD_VERSION "2.81"
+
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
@@ -25,7 +27,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.81 $";
+static const char trbcmd_version[] = "Revision " TRBCMD_VERSION;
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
index 1febf6a85e8d0604c1226002a214b3c73d07d8ef..1ebf7ac6ff0802f6117d339b664ef909f3d86419 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBDHCP_VERSION "1.5"
+
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
@@ -10,7 +12,7 @@
 #include <trbnet.h>
 #include <trberror.h>
 
-static const char trbdhcp_version[] = "$Revision: 1.5 $";
+static const char trbdhcp_version[] = "Revision " TRBDHCP_VERSION;
 
 typedef struct {
   uint16_t address;
index 5c6560f2e0a172d1f8e33a30c8c9b3f6ebe705f4..355a8cb53a9781d9b76da1f734179b2cb0c6ca2e 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBFLASH_VERSION "2.44"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -120,7 +122,7 @@ typedef struct {
 } FlashParam;
 
 static FlashParam flashParamRef;
-static const char trbflash_version[] = "$Revision: 2.44 $";
+static const char trbflash_version[] = "Revision " TRBFLASH_VERSION;
 
 static uint32_t mdcFlashSelect = 1;
 
index 492896d8cd08c45c0f8382939f189e5af7e2af2b..f954851bc82434c9afcc20092dbe92b8c5b6fc26 100644 (file)
@@ -1,11 +1,13 @@
+#define TRBNET_VERSION "4.42"
+
 #ifdef ETRAX
-const char trbnet_version[] = "$Revision: 4.42 $  Local Etrax";
+const char trbnet_version[] = "Revision " TRBNET_VERSION " Local Etrax";
 #elif defined PEXOR
-const char trbnet_version[] = "$Revision: 4.42 $  Local Pexor";
+const char trbnet_version[] = "Revision " TRBNET_VERSION " Local Pexor";
 #elif defined TRB3
-const char trbnet_version[] = "$Revision: 4.42 $  Local TRB3";
+const char trbnet_version[] = "Revision " TRBNET_VERSION " Local TRB3";
 #else
-const char trbnet_version[] = "$Revision: 4.42 $  UNKNOWN, i.e. ERROR";
+const char trbnet_version[] = "Revision " TRBNET_VERSION " UNKNOWN, i.e. ERROR";
 #endif
 
 #include <stdlib.h>
index 0979780eac9e9adbc64802598ffb18cd2ca439da..815be4abdfc5f83245244eaad067eb2bc344d77b 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBNETD_VERSION "1.15"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <rpc/pmap_clnt.h>
@@ -14,7 +16,7 @@
 
 #include "trbrpc.h"
 
-static const char trbnetd_version[] = "$Revision: 1.15 $";
+static const char trbnetd_version[] = "Revision " TRBNETD_VERSION;
 static uint32_t server_rpc_prog_id = TRBNETRPCPROG;
 
 static int daemon_lock = 0;
index fceb7bd913f68214aba865f582219b7af6319ea8..9f605fbbd91a55a7790581d490db77ab041aa2da 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBNET_VERSION "1.14"
+
 #include <stdio.h>
 #include <rpc/rpc.h>            /* always needed  */
 #include <unistd.h>
@@ -7,7 +9,7 @@
 
 #include "trbnet.h"
 
-const char trbnet_version[] = "$Revision: 1.14 $  RPC";
+const char trbnet_version[] = "Revision " TRBNET_VERSION " RPC";
 unsigned int trb_debug = 0;
 unsigned int trb_dma = 0;
 static CLIENT *trb_client = NULL;
index 61d2e2236259b2ed9703782d233a842c02d9dde5..cc4a487372eaaefcae83a0f4daf10596920189d0 100644 (file)
@@ -1,3 +1,5 @@
+#define PULSER_VERSION "1.10"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -11,7 +13,7 @@
 #include <trbnet.h>
 #include <trberror.h>
 
-static const char pulser_version[] = "$Revision: 1.10 $"
+static const char pulser_version[] = "Revision " PULSER_VERSION
 
 /* 6MByte for 6 Sectors should be enough */
 #define BUFFER_SIZE (6 * 1024 * 1024 / 4)
index f36675ad7e23ff7c7f8b29b08fa100972643ef24..cfbfe21f8abadf3f07d71f63f3086b48e1e77369 100644 (file)
@@ -1,3 +1,5 @@
+#define TRB_I2C_VERSION "1.9"
+
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
@@ -11,7 +13,7 @@
 
 #define BUFFER_SIZE (6 * 4096)
 
-static const char trb_i2c_version[] = "$Revision: 1.9 $"
+static const char trb_i2c_version[] = "Revision " TRB_I2C_VERSION
 
 static uint16_t trb_i2c_register = 0x8040;
 
index 48388f43d273e3e4a2c270d40d5700b50d9b104e..168dfaeaf8c07964404f686af007479ae4c2cf04 100644 (file)
@@ -1,3 +1,5 @@
+#define TRBRICHCMD_VERSION "1.14"
+
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
@@ -15,7 +17,7 @@
 
 static const uint16_t BroadCastRich = 0xfffb;
 
-static const char trbrichcmd_version[] = "$Revision: 1.14 $"
+static const char trbrichcmd_version[] = "Revision " TRBRICHCMD_VERSION
 
 static const uint16_t adcm_uid_register = 0xc000;