src/version.c

Go to the documentation of this file.
00001 /*
00002  * version.c - version information 
00003  */
00004 
00005 #include "copyright.h"
00006 #include "config.h"
00007 
00008 #include "db.h"
00009 #include "mudconf.h"
00010 #include "alloc.h"
00011 #include "externs.h"
00012 #include "patchlevel.h"
00013 
00014 /*
00015  * 7 years of btech patches.
00016  */
00017 
00018 /*
00019  * 1.0.0 TinyMUX 
00020  */
00021 
00022 /*
00023  * 2.0
00024  * All known bugs fixed with disk-based.  Played with gdbm, it
00025  * sucked.  Now using bsd 4.4 hash stuff.
00026  */
00027 
00028 /*
00029  * 1.12
00030  * * All known bugs fixed after several days of debugging 1.10/1.11.
00031  * * Much string-handling braindeath patched, but needs a big overhaul,
00032  * * really.   GAC 2/10/91
00033  */
00034 
00035 /*
00036  * 1.11
00037  * * Fixes for 1.10.  (@name didn't call do_name, etc.)
00038  * * Added dexamine (debugging examine, dumps the struct, lots of info.)
00039  */
00040 
00041 /*
00042  * 1.10
00043  * * Finally got db2newdb working well enough to run from the big (30000
00044  * * object) db with ATR_KEY and ATR_NAME defined.   GAC 2/3/91
00045  */
00046 
00047 /*
00048  * TinyCWRU version.c file.  Add a comment here any time you've made a
00049  * * big enough revision to increment the TinyCWRU version #.
00050  */
00051 
00052 void do_version(dbref player, dbref cause, int extra)
00053 {
00054         notify(player, mudstate.version);
00055 }
00056 
00057 char *mux_version = PACKAGE_STRING "." MINOR_REVNUM
00058 #ifdef HUDINFO_SUPPORT
00059     "+HUD"
00060 #endif
00061 #ifdef HAG_WAS_HERE
00062     "+HAG"
00063 #endif
00064 #ifdef SQL_SUPPORT
00065     "+SQL"
00066 #endif
00067 #ifdef ARBITRARY_LOGFILES
00068     "+ALG"
00069 #endif
00070 #ifdef DEBUG
00071     " DEBUG svn revision " SVN_REVISION
00072 #else
00073     " RELEASE svn revision " SVN_REVISION
00074 #endif
00075     " '" RELEASE_NAME "' build #" MUX_BUILD_NUM " on " MUX_BUILD_DATE
00076 #ifdef DEBUG
00077     " by " MUX_BUILD_USER "@" MUX_BUILD_HOST
00078 #endif
00079     ;
00080 
00081 
00082 void init_version(void)
00083 {
00084     strlcpy(mudstate.version, mux_version, sizeof(mudstate.version));
00085 
00086         STARTLOG(LOG_ALWAYS, "INI", "START") {
00087                 log_text((char *) "Starting: ");
00088                 log_text(mudstate.version);
00089                 ENDLOG;
00090         } STARTLOG(LOG_ALWAYS, "INI", "START") {
00091                 log_text((char *) "Build date: ");
00092 
00093                 log_text((char *) MUX_BUILD_DATE);
00094                 ENDLOG;
00095         }
00096 }

Generated on Mon May 28 04:25:26 2007 for BattletechMUX by  doxygen 1.4.7