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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/* 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
*
* $Source$
* $Author$
*
* 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 "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()
{
static char vers_buf[256];
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, "/");
#ifdef vax
(void) strcat(vers_buf, "VAX");
#endif /* vax */
#ifdef ibm032
(void) strcat(vers_buf, "IBM RT");
#endif /* ibm032 */
#ifdef _IBMR2
(void) strcat(vers_buf, "IBM RS/6000");
#endif /* _IBMR2 */
#ifdef sun
(void) strcat(vers_buf, "SUN");
#ifdef sparc
(void) strcat (vers_buf, "-4");
#endif /* sparc */
#ifdef sun386
(void) strcat (vers_buf, "-386I");
#endif /* sun386 */
#endif /* sun */
#ifdef mips
#ifdef ultrix /* DECstation */
(void) strcat (vers_buf, "DEC-");
#endif /* ultrix */
(void) strcat(vers_buf, "MIPS");
#endif /* mips */
#ifdef NeXT
(void) strcat(vers_buf, "NeXT");
#endif /* NeXT */
}
return(vers_buf);
}
|