blob: 3f4db17230a4e7608b9fd733d19113410eddffa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* This file is part of the Project Athena Zephyr Notification System.
* It contains the version identification of the Zephyr server
*
* Created by: John T. Kohl
*
* $Id$
*
* Copyright (c) 1989 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include <zephyr/mit-copyright.h>
#include <sys/utsname.h>
#include "zserver.h"
#include "version.h"
const char zephyr_version[] = "Zephyr system version 2.0";
#ifdef DEBUG
const char version[] = "Zephyr server (DEBUG) $Revision$";
#else
const char version[] = "Zephyr server $Revision$";
#endif
#if !defined (lint) && !defined (SABER)
static const char rcsid_version_c[] =
"$Id$";
static const char copyright[] =
"Copyright (c) 1987,1988,1989,1990 Massachusetts Institute of Technology.\n";
#endif
char *
get_version(void)
{
static char vers_buf[256];
struct utsname un;
if (vers_buf[0] == '\0') {
#ifdef DEBUG
sprintf(vers_buf,"Zephyr Server (DEBUG) $Revision$: %s",
ZSERVER_VERSION_STRING);
#else
sprintf(vers_buf,"Zephyr Server $Revision$: %s",
ZSERVER_VERSION_STRING);
#endif /* DEBUG */
(void) strcat(vers_buf, "/");
uname(&un);
(void) strcat(vers_buf, un.machine);
(void) strcat(vers_buf, "-");
(void) strcat(vers_buf, un.sysname);
}
return(vers_buf);
}
|