ecunumrev.c 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /* #define ALPHA */
  2. /* #define BETA */
  3. char *numeric_revision = "4";
  4. #if defined(WHT) || defined(ALPHA) || defined(BETA)
  5. char *numeric_devrev = "32";
  6. #else
  7. char *numeric_devrev = "";
  8. #endif
  9. /*+-----------------------------------------------------------------------
  10. ecunumrev.c - revision numbers
  11. wht@wht.net
  12. Defined functions:
  13. build_revision_string()
  14. ------------------------------------------------------------------------*/
  15. /*+:EDITS:*/
  16. /*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
  17. /*:04-05-1998-16:54-wht@kepler-4.21.32-flush tty at servewire boj */
  18. /*:03-25-1998-20:16-wht@kepler-4.21.30-get one out for Bob Balin */
  19. /*:02-26-1998-18:18-wht@menlo-4.20.25-back to the original world */
  20. /*:02-26-1998-01:45-wht@menlo-4.20.24-linux2/redhat*/
  21. /*:02-02-1998-17:37-wht@kepler-4.14.23 */
  22. /*:12-22-1997-15:54-wht@kepler-4.13.22-to SCO skunkworks */
  23. /*:12-21-1997-13:53-wht@sidonia-4.13.21-more portability */
  24. /*:12-18-1997-06:06-wht@sidonia-4.12.18-port to aix */
  25. /*:12-15-1997-20:46-wht@fep-4.11.17-OS7+enhance portability */
  26. /*:12-08-1997-17:08-wht@kepler-4.10.16-releaseable again */
  27. /*:11-03-1997-02:13-wht@kepler-4.08a-identified as 4.08.10 */
  28. /*:06-06-1997-15:26-wht@gyro-4.07.06-open new rev for routine maintenance */
  29. /*:03-21-1997-01:58-wht@varykino-4.05 */
  30. /*:03-03-1997-16:00-wht@yuriatin-4.04 */
  31. /*:02-25-1997-14:40-wht@yuriatin-4.03 */
  32. /*:02-04-1997-15:31-wht@yuriatin-4.02 */
  33. /*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
  34. /*:11-04-1996-19:46-wht@yuriatin-BETA-3.56.41T */
  35. /*:11-04-1996-03:47-wht@yuriatin-BETA-3.56.40T */
  36. /*:11-01-1996-18:24-wht@yuriatin-BETA-3.56.39T */
  37. /*:10-31-1996-17:49-wht@yuriatin-BETA-3.55.38T */
  38. /*:10-28-1996-14:05-wht@yuriatin-BETA-3.55.37T */
  39. /*:10-25-1996-17:28-wht@yuriatin-BETA-3.55.36T */
  40. /*:10-20-1996-19:49-wht@yuriatin-BETA-3.54.35T */
  41. /*:10-18-1996-21:14-wht@yuriatin-BETA-3.54.34T */
  42. /*:10-18-1996-01:28-wht@yuriatin-BETA-3.54.33T */
  43. /*:10-16-1996-20:25-wht@yuriatin-BETA-3.54.32T */
  44. /*:10-16-1996-04:00-wht@yuriatin-BETA-3.54.31T */
  45. /*:10-16-1996-02:12-wht@yuriatin-BETA-3.54.30T */
  46. /*:10-15-1996-20:12-wht@yuriatin-BETA-3.54.29T */
  47. /*:10-09-1996-20:45-wht@yuriatin-BETA-3.54.28T */
  48. /*:09-24-1996-06:19-wht@yuriatin-BETA-3.53.27T */
  49. /*:09-19-1996-02:29-wht@yuriatin-BETA 3.52.25 */
  50. /*:09-18-1996-17:21-wht@yuriatin-BETA-3.51.24 */
  51. /*:09-17-1996-05:09-wht@yuriatin-tag CFG_TelnetOption use */
  52. /*:09-13-1996-17:50-wht@kepler-3.49-cleanup 3.48 details */
  53. /*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  54. /*:09-08-1996-15:15-wht@kepler-3.48-radicial rewrite/simplify/update/harden */
  55. /*:07-31-1996-17:19-wht@kepler-3-43-3.44 rapid fire Solaris/FreeBSD fixes */
  56. /*:06-13-1996-13:25-wht@kepler-3.42-fix GCC/CC discrep in config */
  57. /*:02-28-1996-21:31-wht@kepler-3.39.01-fix ">" shell cmd to use /bin/sh */
  58. /*:01-27-1996-21:28-wht@kepler-bump for primary release - not BETA */
  59. /*:12-12-1995-14:22-wht@kepler-3.38.05-notify [no line attached] on keystroke */
  60. /*:12-10-1995-09:55-wht@kepler-3.38.04-tty1A is default on SCO */
  61. /*:12-09-1995-12:00-wht@kepler-3.38.03-fix stdin /dev/null operation */
  62. /*:12-03-1995-19:19-wht@kepler-3.38.02-work on SunOS version */
  63. /*:11-24-1995-14:18-wht@kepler-3.37.90-zmodem xfer fixed */
  64. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  65. /*:11-20-1995-12:24-wht@n4hgf-3.37.82-misc cleanup for SCO 32v4 */
  66. /*:11-14-1995-17:44-wht@kepler-3.37.81-more cleanup */
  67. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  68. /*:11-04-1995-15:10-wht@wwtp1-3.37.78-working MUCH better */
  69. /*:11-03-1995-18:05-wht@kepler-3.37.77-clean up OS5 port */
  70. /*:11-03-1995-16:08-wht@wwtp1-3.37.76-refine port to OS5 */
  71. /*:10-19-1995-14:41-wht@kepler-3.37.75-telnet almost working */
  72. /*:10-15-1995-15:22-wht@calvin-3.37.74-SVR4 and SunOS cleanup */
  73. /*:10-14-1995-14:38-wht@kepler-3.37.73-baud values extension */
  74. /*:10-09-1995-16:42-wht@kepler-3.37-72-fix SU */
  75. /*:09-16-1995-17:01-wht@kepler-3.37.71-tcap execution debug/investigation */
  76. /*:09-04-1995-19:03-wht@n4hgf-3.37.70-fix 32v5 lock file naming */
  77. /*:09-01-1995-17:37-wht@n4hgf-3.37.69-32v5 lock file naming */
  78. /*:06-05-1995-02:23-wht@n4hgf-moving toward Everest and ECU 3.40 */
  79. /*:01-15-1995-01:44-wht@n4hgf-clean up port rot */
  80. /*:01-12-1995-15:19-wht@n4hgf-apply Andrew Chernov 8-bit clean+FreeBSD patch */
  81. /*:05-04-1994-04:38-wht@n4hgf-ECU release 3.30 */
  82. /*:12-12-1993-13:28-wht@n4hgf-support MOTSVR3 */
  83. /*:11-14-1993-12:33-wht@n4hgf-HP-UX port by Carl Wuebker at HP */
  84. /*:09-16-1992-14:13-wht@n4hgf-add M and F version qualifiers */
  85. /*:09-10-1992-13:58-wht@n4hgf-ECU release 3.20 */
  86. /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  87. /*:11-16-1991-17:05-wht@n4hgf-better development "x" rev numbering */
  88. /*:08-28-1991-14:07-wht@n4hgf2-SVR4 cleanup by aega84!lh */
  89. /*:08-25-1991-14:39-wht@n4hgf-SVR4 port thanks to aega84!lh */
  90. /*:07-25-1991-12:56-wht@n4hgf-ECU release 3.10 */
  91. /*:07-12-1991-14:14-wht@n4hgf-GCC140 differentiation */
  92. /*:04-27-1991-01:52-wht@n4hgf-overhaul revision numbers */
  93. /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  94. #include <stdio.h>
  95. #include <string.h>
  96. #include <malloc.h>
  97. #include "ecu_config.h"
  98. #include "patchlevel.h"
  99. #if defined(M_UNIX)
  100. #undef M_XENIX
  101. #endif
  102. char *revstr = "";
  103. /*+-------------------------------------------------------------------------
  104. build_revision_string()
  105. --------------------------------------------------------------------------*/
  106. void
  107. build_revision_string()
  108. {
  109. int itmp;
  110. char s128[128];
  111. sprintf(s128, "%s%s.%02d", (itmp = strlen(numeric_devrev)) ?
  112. #ifdef ALPHA
  113. "ALPHA-"
  114. #else
  115. #ifdef BETA
  116. "BETA-"
  117. #else
  118. "x"
  119. #endif
  120. #endif
  121. : "",
  122. numeric_revision, PATCHLEVEL);
  123. if (itmp)
  124. {
  125. strcat(s128, ".");
  126. strcat(s128, numeric_devrev);
  127. }
  128. #ifdef CFG_TelnetOption
  129. strcat(s128, "T");
  130. #endif
  131. #ifdef WHT
  132. strcat(s128, "*");
  133. #endif
  134. if (!(revstr = malloc(strlen(s128) + 1)))
  135. {
  136. fprintf(stderr, "out of memory so early!?\n");
  137. exit(255);
  138. }
  139. strcpy(revstr, s128);
  140. } /* end of build_revision_string */
  141. /* vi: set tabstop=4 shiftwidth=4: */