Put version into central file

SVN revision: 2466
This commit is contained in:
Stefan Ritt 2012-07-12 14:07:03 +00:00
parent c8db551b0e
commit 8755d9372d
3 changed files with 28 additions and 13 deletions

16
src/elog-version.h Normal file
View File

@ -0,0 +1,16 @@
/********************************************************************
Name: elog-version.h
Created by: Stefan Ritt
Contents: Version file for all ELOG programs
$Id: elog-version.h 1 2012-06-10 12:56:11Z ritt $
\********************************************************************/
/* Version of ELOG */
#define VERSION "2.9.2"
/* ELOG identification */
static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;

View File

@ -1,10 +1,11 @@
/******************************************************************** /********************************************************************
Name: elogd.c
Created by: Stefan Ritt Name: elogd.c
Created by: Stefan Ritt
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Id$ $Id$
\********************************************************************/ \********************************************************************/
@ -12,9 +13,6 @@
char svn_revision[] = "$Id$"; char svn_revision[] = "$Id$";
/* ELOG identification */
static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
BOOL running_as_daemon; /* Running as a daemon/service? */ BOOL running_as_daemon; /* Running as a daemon/service? */
int elog_tcp_port; /* Server's TCP port */ int elog_tcp_port; /* Server's TCP port */

View File

@ -1,15 +1,16 @@
/******************************************************************** /********************************************************************
Name: elogd.h
Created by: Stefan Ritt Name: elogd.h
Created by: Stefan Ritt
Contents: Header file for ELOG program Contents: Header file for ELOG program
$Id: elogd.c 2354 2011-01-10 11:53:11Z ritt $ $Id: elogd.c 2354 2011-01-10 11:53:11Z ritt $
\********************************************************************/ \********************************************************************/
/* Version of ELOG */ /* Include version from central version file */
#define VERSION "2.9.2" #include "elog-version.h"
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>