home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / mm-0.90 / version.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  1.9 KB  |  94 lines

  1. /*
  2.  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3.  * the City of New York.  Permission is granted to any individual or
  4.  * institution to use, copy, or redistribute this software so long as it
  5.  * is not sold for profit, provided this copyright notice is retained.
  6.  */
  7.  
  8. #ifndef lint
  9. static char *rcsid = "$Header: /f/src2/encore.bin/cucca/mm/tarring-it-up/RCS/version.c,v 2.3 90/10/04 18:26:59 melissa Exp $";
  10. #endif
  11.  
  12. /*
  13.  * Dump all of the rcs-id's from MM's header files.
  14.  */
  15.  
  16. #define RCSID
  17. #include "mm.h"
  18. #include "parse.h"
  19. #include "cmds.h"
  20. #include "message.h"
  21. #include "babyl.h"
  22. #include "rd.h"
  23. #include "set.h"
  24. #include "help.h"
  25. #undef RCSID
  26.  
  27. /*
  28.  * Pull in the version string, major and minor release numbers, the edit
  29.  * number, and the who-compiled-mm string, and make them available in global
  30.  * variables.  This is ugly but it obviates the need to recompile all the
  31.  * modules that might want to reference the edit numbers every time version.h
  32.  * changes.
  33.  */
  34.  
  35. #include "version.h"
  36.  
  37. char *mm_version = MM_VERSION;
  38. char *mm_compiled = MM_COMPILED;
  39. int mm_major_version = MM_MAJOR;
  40. int mm_minor_version = MM_MINOR;
  41. int mm_patch_level = MM_PATCH;
  42. int mm_edit_number = MM_EDIT;
  43.  
  44. /*
  45.  * Make a guess at the operating system type, so we can include that
  46.  * info in the headers of bug reports sent with the "bug" command.
  47.  */
  48.  
  49. #if AIX
  50. char *OStype = "AIX";
  51. #else
  52. #if hpux
  53. char *OStype = "hpux";
  54. #else
  55. #ifdef pyr
  56. char *OStype = "Pyramid";
  57. #else
  58. #if accel
  59. char *OStype = "Accel";
  60. #else
  61. #if ultrix
  62. char *OStype = "Ultrix";
  63. #else
  64. #if sun
  65. char *OStype = "SunOS";
  66. #else
  67. #if BSD
  68. char *OStype = "BSD";
  69. #else
  70. #if SYSV
  71. #if SVR3
  72. char *OStype = "SVR3";
  73. #else
  74. #if SVR2
  75. char *OStype = "SVR2";
  76. #else
  77. char *OStype = "SYSV";
  78. #endif
  79. #endif
  80. #else
  81. #if MSDOS
  82. char *OStype = "MS-DOS";
  83. #else
  84. char *OStype = "unknown";
  85. #endif /* MSDOS */
  86. #endif /* SYSV */
  87. #endif /* BSD */
  88. #endif /* SUN */
  89. #endif /* Ultrix */
  90. #endif /* accel */
  91. #endif /* pyramid */
  92. #endif /* hpux */
  93. #endif /* AIX */
  94.