1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It contains the version identification of the Zephyr server
4 * Created by: John T. Kohl
6 * $Id: version.c 2131 2008-01-21 03:11:00Z kcr $
8 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
9 * For copying and distribution information, see the file
13 #include <zephyr/mit-copyright.h>
15 #include <sys/utsname.h>
20 const char zephyr_version[] = "Zephyr system version 2.0";
23 const char version[] = "Zephyr server (DEBUG) $Revision: 2131 $";
25 const char version[] = "Zephyr server $Revision: 2131 $";
28 #if !defined (lint) && !defined (SABER)
29 static const char rcsid_version_c[] =
30 "$Id: version.c 2131 2008-01-21 03:11:00Z kcr $";
31 static const char copyright[] =
32 "Copyright (c) 1987,1988,1989,1990 Massachusetts Institute of Technology.\n";
38 static char vers_buf[256];
41 if (vers_buf[0] == '\0') {
43 sprintf(vers_buf,"Zephyr Server (DEBUG) $Revision: 2131 $: %s",
44 ZSERVER_VERSION_STRING);
46 sprintf(vers_buf,"Zephyr Server $Revision: 2131 $: %s",
47 ZSERVER_VERSION_STRING);
50 (void) strcat(vers_buf, "/");
52 (void) strcat(vers_buf, "VAX");
55 (void) strcat(vers_buf, "IBM RT");
58 (void) strcat(vers_buf, "IBM RS/6000");
61 (void) strcat(vers_buf, "SUN");
63 (void) strcat (vers_buf, "-4");
66 (void) strcat (vers_buf, "-386I");
71 #ifdef ultrix /* DECstation */
72 (void) strcat (vers_buf, "DEC-");
74 (void) strcat(vers_buf, "MIPS");
77 (void) strcat(vers_buf, "NeXT");
80 if (vers_buf[strlen(vers_buf) - 1] == '/') {
82 (void) strcat(vers_buf, un.machine);
83 (void) strcat(vers_buf, "-");
84 (void) strcat(vers_buf, un.sysname);