]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/server/version.c
230a66cc01aa3327b830e0f5206ec94e1006bea7
[1ts-debian.git] / zephyr / server / version.c
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains the version identification of the Zephyr server
3  *
4  *      Created by:     John T. Kohl
5  *
6  *      $Id$
7  *
8  *      Copyright (c) 1989 by the Massachusetts Institute of Technology.
9  *      For copying and distribution information, see the file
10  *      "mit-copyright.h". 
11  */
12
13 #include <zephyr/mit-copyright.h>
14
15 #include "zserver.h"
16 #include "version.h"
17
18 const char zephyr_version[] = "Zephyr system version 2.0";
19
20 #ifdef DEBUG
21 const char version[] = "Zephyr server (DEBUG) $Revision$";
22 #else
23 const char version[] = "Zephyr server $Revision$";
24 #endif
25
26 #if !defined (lint) && !defined (SABER)
27 static const char rcsid_version_c[] =
28     "$Id$";
29 static const char copyright[] =
30     "Copyright (c) 1987,1988,1989,1990 Massachusetts Institute of Technology.\n";
31 #endif
32
33 char *
34 get_version()
35 {
36   static char vers_buf[256];
37
38   if (vers_buf[0] == '\0') {
39 #ifdef DEBUG
40     sprintf(vers_buf,"Zephyr Server (DEBUG) $Revision$: %s",
41             ZSERVER_VERSION_STRING);
42 #else
43     sprintf(vers_buf,"Zephyr Server $Revision$: %s",
44             ZSERVER_VERSION_STRING);
45 #endif /* DEBUG */
46
47     (void) strcat(vers_buf, "/");
48 #ifdef vax
49     (void) strcat(vers_buf, "VAX");
50 #endif /* vax */
51 #ifdef ibm032
52     (void) strcat(vers_buf, "IBM RT");
53 #endif /* ibm032 */
54 #ifdef _IBMR2
55     (void) strcat(vers_buf, "IBM RS/6000");
56 #endif /* _IBMR2 */
57 #ifdef sun
58     (void) strcat(vers_buf, "SUN");
59 #ifdef sparc
60     (void) strcat (vers_buf, "-4");
61 #endif /* sparc */
62 #ifdef sun386
63     (void) strcat (vers_buf, "-386I");
64 #endif /* sun386 */
65 #endif /* sun */
66
67 #ifdef mips
68 #ifdef ultrix                   /* DECstation */
69     (void) strcat (vers_buf, "DEC-");
70 #endif /* ultrix */
71     (void) strcat(vers_buf, "MIPS");
72 #endif /* mips */
73 #ifdef NeXT
74     (void) strcat(vers_buf, "NeXT");
75 #endif /* NeXT */
76   }
77   return(vers_buf);
78 }
79
80
81
82
83