mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Show revision on startup
SVN revision: 1093
This commit is contained in:
parent
de7872aedd
commit
2a809dd351
11
src/elogd.c
11
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.486 2004/09/24 20:49:16 midas
|
||||||
|
Show revision on startup
|
||||||
|
|
||||||
Revision 1.485 2004/09/24 20:40:25 midas
|
Revision 1.485 2004/09/24 20:40:25 midas
|
||||||
Added cvs_revision
|
Added cvs_revision
|
||||||
|
|
||||||
@ -568,7 +571,7 @@
|
|||||||
|
|
||||||
/* Version of ELOG */
|
/* Version of ELOG */
|
||||||
#define VERSION "2.5.4-4"
|
#define VERSION "2.5.4-4"
|
||||||
char cvs_revision = "$Id$";
|
char cvs_revision[] = "$Id$";
|
||||||
|
|
||||||
/* ELOG identification */
|
/* ELOG identification */
|
||||||
static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
|
static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__;
|
||||||
@ -19555,7 +19558,11 @@ void server_loop(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* about to entering the server loop, welcome user with a brief info */
|
/* about to entering the server loop, welcome user with a brief info */
|
||||||
eprintf("%s\n", ELOGID);
|
eprintf("%s ", ELOGID);
|
||||||
|
strcpy(str, cvs_revision+15);
|
||||||
|
if (strchr(str, ' '))
|
||||||
|
*strchr(str, ' ') = 0;
|
||||||
|
eprintf("revision %s\n", str);
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
eprintf("Config file : %s\n", config_file);
|
eprintf("Config file : %s\n", config_file);
|
||||||
eprintf("Resource dir : %s\n", resource_dir[0] ? resource_dir : "current dir");
|
eprintf("Resource dir : %s\n", resource_dir[0] ? resource_dir : "current dir");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user