+#define TRBCMD_VERSION "2.81"
+
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
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;
+#define TRBDHCP_VERSION "1.5"
+
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#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;
+#define TRBFLASH_VERSION "2.44"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
} 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;
+#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>
+#define TRBNETD_VERSION "1.15"
+
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#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;
+#define TRBNET_VERSION "1.14"
+
#include <stdio.h>
#include <rpc/rpc.h> /* always needed */
#include <unistd.h>
#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;
+#define PULSER_VERSION "1.10"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#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)
+#define TRB_I2C_VERSION "1.9"
+
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#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;
+#define TRBRICHCMD_VERSION "1.14"
+
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
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;