From 70d66fbdfca649484e1368d9b33b98636d34cdf7 Mon Sep 17 00:00:00 2001 From: Ludwig Maier Date: Fri, 24 May 2013 14:58:58 +0200 Subject: [PATCH] automatic $Revision$ update not really supported by git, changed to manual mode using #define..... --- libtrbnet/trbcmd.c | 4 +++- libtrbnet/trbdhcp.c | 4 +++- libtrbnet/trbflash.c | 4 +++- libtrbnet/trbnet.c | 10 ++++++---- trbnetd/server/trbnetd.c | 4 +++- trbnetd/trbnetrpc.c | 4 +++- trbrich/pulser.c | 4 +++- trbrich/trb_i2c.c | 4 +++- trbrich/trbrichcmd.c | 4 +++- 9 files changed, 30 insertions(+), 12 deletions(-) diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index 8785590..ffa4909 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -1,3 +1,5 @@ +#define TRBCMD_VERSION "2.81" + #define _GNU_SOURCE #include #include @@ -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; diff --git a/libtrbnet/trbdhcp.c b/libtrbnet/trbdhcp.c index 1febf6a..1ebf7ac 100644 --- a/libtrbnet/trbdhcp.c +++ b/libtrbnet/trbdhcp.c @@ -1,3 +1,5 @@ +#define TRBDHCP_VERSION "1.5" + #define _GNU_SOURCE #include #include @@ -10,7 +12,7 @@ #include #include -static const char trbdhcp_version[] = "$Revision: 1.5 $"; +static const char trbdhcp_version[] = "Revision " TRBDHCP_VERSION; typedef struct { uint16_t address; diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 5c6560f..355a8cb 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -1,3 +1,5 @@ +#define TRBFLASH_VERSION "2.44" + #include #include #include @@ -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; diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index 492896d..f954851 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -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 diff --git a/trbnetd/server/trbnetd.c b/trbnetd/server/trbnetd.c index 0979780..815be4a 100644 --- a/trbnetd/server/trbnetd.c +++ b/trbnetd/server/trbnetd.c @@ -1,3 +1,5 @@ +#define TRBNETD_VERSION "1.15" + #include #include #include @@ -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; diff --git a/trbnetd/trbnetrpc.c b/trbnetd/trbnetrpc.c index fceb7bd..9f605fb 100644 --- a/trbnetd/trbnetrpc.c +++ b/trbnetd/trbnetrpc.c @@ -1,3 +1,5 @@ +#define TRBNET_VERSION "1.14" + #include #include /* always needed */ #include @@ -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; diff --git a/trbrich/pulser.c b/trbrich/pulser.c index 61d2e22..cc4a487 100644 --- a/trbrich/pulser.c +++ b/trbrich/pulser.c @@ -1,3 +1,5 @@ +#define PULSER_VERSION "1.10" + #include #include #include @@ -11,7 +13,7 @@ #include #include -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) diff --git a/trbrich/trb_i2c.c b/trbrich/trb_i2c.c index f36675a..cfbfe21 100644 --- a/trbrich/trb_i2c.c +++ b/trbrich/trb_i2c.c @@ -1,3 +1,5 @@ +#define TRB_I2C_VERSION "1.9" + #define _GNU_SOURCE #include #include @@ -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; diff --git a/trbrich/trbrichcmd.c b/trbrich/trbrichcmd.c index 48388f4..168dfae 100644 --- a/trbrich/trbrichcmd.c +++ b/trbrich/trbrichcmd.c @@ -1,3 +1,5 @@ +#define TRBRICHCMD_VERSION "1.14" + #define _GNU_SOURCE #include #include @@ -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; -- 2.43.0