-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecunumrev.c
159 lines (141 loc) · 5.89 KB
/
ecunumrev.c
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* #define ALPHA */
/* #define BETA */
char *numeric_revision = "4";
#if defined(WHT) || defined(ALPHA) || defined(BETA)
char *numeric_devrev = "32";
#else
char *numeric_devrev = "";
#endif
/*+-----------------------------------------------------------------------
ecunumrev.c - revision numbers
Defined functions:
build_revision_string()
------------------------------------------------------------------------*/
/*+:EDITS:*/
/*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
/*:04-05-1998-16:[email protected] tty at servewire boj */
/*:03-25-1998-20:[email protected] one out for Bob Balin */
/*:02-26-1998-18:[email protected] to the original world */
/*:02-26-1998-01:[email protected]/redhat*/
/*:02-02-1998-17:[email protected] */
/*:12-22-1997-15:[email protected] SCO skunkworks */
/*:12-21-1997-13:[email protected] portability */
/*:12-18-1997-06:[email protected] to aix */
/*:12-15-1997-20:[email protected]+enhance portability */
/*:12-08-1997-17:[email protected] again */
/*:11-03-1997-02:[email protected] as 4.08.10 */
/*:06-06-1997-15:[email protected] new rev for routine maintenance */
/*:03-21-1997-01:[email protected] */
/*:03-03-1997-16:[email protected] */
/*:02-25-1997-14:[email protected] */
/*:02-04-1997-15:[email protected] */
/*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
/*:11-04-1996-19:[email protected] */
/*:11-04-1996-03:[email protected] */
/*:11-01-1996-18:[email protected] */
/*:10-31-1996-17:[email protected] */
/*:10-28-1996-14:[email protected] */
/*:10-25-1996-17:[email protected] */
/*:10-20-1996-19:[email protected] */
/*:10-18-1996-21:[email protected] */
/*:10-18-1996-01:[email protected] */
/*:10-16-1996-20:[email protected] */
/*:10-16-1996-04:[email protected] */
/*:10-16-1996-02:[email protected] */
/*:10-15-1996-20:[email protected] */
/*:10-09-1996-20:[email protected] */
/*:09-24-1996-06:[email protected] */
/*:09-19-1996-02:29-wht@yuriatin-BETA 3.52.25 */
/*:09-18-1996-17:[email protected] */
/*:09-17-1996-05:09-wht@yuriatin-tag CFG_TelnetOption use */
/*:09-13-1996-17:[email protected] 3.48 details */
/*:09-11-1996-20:[email protected] telnet,curses,structural overhaul */
/*:09-08-1996-15:[email protected] rewrite/simplify/update/harden */
/*:07-31-1996-17:[email protected] rapid fire Solaris/FreeBSD fixes */
/*:06-13-1996-13:[email protected] GCC/CC discrep in config */
/*:02-28-1996-21:[email protected] ">" shell cmd to use /bin/sh */
/*:01-27-1996-21:28-wht@kepler-bump for primary release - not BETA */
/*:12-12-1995-14:[email protected] [no line attached] on keystroke */
/*:12-10-1995-09:[email protected] is default on SCO */
/*:12-09-1995-12:[email protected] stdin /dev/null operation */
/*:12-03-1995-19:[email protected] on SunOS version */
/*:11-24-1995-14:[email protected] xfer fixed */
/*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
/*:11-20-1995-12:[email protected] cleanup for SCO 32v4 */
/*:11-14-1995-17:[email protected] cleanup */
/*:11-14-1995-10:[email protected] control point: SOCKETS */
/*:11-04-1995-15:[email protected] MUCH better */
/*:11-03-1995-18:[email protected] up OS5 port */
/*:11-03-1995-16:[email protected] port to OS5 */
/*:10-19-1995-14:[email protected] almost working */
/*:10-15-1995-15:[email protected] and SunOS cleanup */
/*:10-14-1995-14:[email protected] values extension */
/*:10-09-1995-16:[email protected] SU */
/*:09-16-1995-17:[email protected] execution debug/investigation */
/*:09-04-1995-19:[email protected] 32v5 lock file naming */
/*:09-01-1995-17:[email protected] lock file naming */
/*:06-05-1995-02:23-wht@n4hgf-moving toward Everest and ECU 3.40 */
/*:01-15-1995-01:44-wht@n4hgf-clean up port rot */
/*:01-12-1995-15:19-wht@n4hgf-apply Andrew Chernov 8-bit clean+FreeBSD patch */
/*:05-04-1994-04:38-wht@n4hgf-ECU release 3.30 */
/*:12-12-1993-13:28-wht@n4hgf-support MOTSVR3 */
/*:11-14-1993-12:33-wht@n4hgf-HP-UX port by Carl Wuebker at HP */
/*:09-16-1992-14:13-wht@n4hgf-add M and F version qualifiers */
/*:09-10-1992-13:58-wht@n4hgf-ECU release 3.20 */
/*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
/*:11-16-1991-17:05-wht@n4hgf-better development "x" rev numbering */
/*:08-28-1991-14:07-wht@n4hgf2-SVR4 cleanup by aega84!lh */
/*:08-25-1991-14:39-wht@n4hgf-SVR4 port thanks to aega84!lh */
/*:07-25-1991-12:56-wht@n4hgf-ECU release 3.10 */
/*:07-12-1991-14:14-wht@n4hgf-GCC140 differentiation */
/*:04-27-1991-01:52-wht@n4hgf-overhaul revision numbers */
/*:08-14-1990-20:[email protected] old edit history */
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "ecu_config.h"
#include "patchlevel.h"
#if defined(M_UNIX)
#undef M_XENIX
#endif
char *revstr = "";
/*+-------------------------------------------------------------------------
build_revision_string()
--------------------------------------------------------------------------*/
void
build_revision_string()
{
int itmp;
char s128[128];
sprintf(s128, "%s%s.%02d", (itmp = strlen(numeric_devrev)) ?
#ifdef ALPHA
"ALPHA-"
#else
#ifdef BETA
"BETA-"
#else
"x"
#endif
#endif
: "",
numeric_revision, PATCHLEVEL);
if (itmp)
{
strcat(s128, ".");
strcat(s128, numeric_devrev);
}
#ifdef CFG_TelnetOption
strcat(s128, "T");
#endif
#ifdef WHT
strcat(s128, "*");
#endif
if (!(revstr = malloc(strlen(s128) + 1)))
{
fprintf(stderr, "out of memory so early!?\n");
exit(255);
}
strcpy(revstr, s128);
} /* end of build_revision_string */
/* vi: set tabstop=4 shiftwidth=4: */