btmux/autom4te.cache/
btmux/doc/.svn/
btmux/event/.svn/
btmux/game/.svn/
btmux/game/bin/.svn/
btmux/game/data/.svn/
btmux/game/logs/.svn/
btmux/game/maps/
btmux/game/maps/.svn/
btmux/game/maps/.svn/prop-base/
btmux/game/maps/.svn/props/
btmux/game/maps/.svn/text-base/
btmux/game/maps/.svn/wcprops/
btmux/game/mechs/
btmux/game/mechs/.svn/
btmux/game/mechs/.svn/prop-base/
btmux/game/mechs/.svn/props/
btmux/game/mechs/.svn/text-base/
btmux/game/mechs/.svn/wcprops/
btmux/game/text/.svn/
btmux/include/.svn/
btmux/misc/
btmux/misc/.svn/
btmux/misc/.svn/prop-base/
btmux/misc/.svn/props/
btmux/misc/.svn/text-base/
btmux/misc/.svn/wcprops/
btmux/python/
btmux/python/.svn/
btmux/python/.svn/prop-base/
btmux/python/.svn/props/
btmux/python/.svn/text-base/
btmux/python/.svn/wcprops/
btmux/src/.svn/prop-base/
btmux/src/.svn/props/
btmux/src/.svn/text-base/
btmux/src/.svn/wcprops/
btmux/src/hcode/.svn/
btmux/src/hcode/btech/
btmux/src/hcode/btech/.svn/
btmux/src/hcode/btech/.svn/prop-base/
btmux/src/hcode/btech/.svn/props/
btmux/src/hcode/btech/.svn/text-base/
btmux/src/hcode/btech/.svn/wcprops/
btmux/src/hcode/include/.svn/
/*
 * version.c - version information 
 */

/*
 * $Id: version.c,v 1.3 2005/08/08 09:43:07 murrayma Exp $ 
 */

#include "copyright.h"
#include "config.h"

#include "db.h"
#include "mudconf.h"
#include "alloc.h"
#include "externs.h"
#include "patchlevel.h"

/*
 * 7 years of btech patches.
 */

/*
 * 1.0.0 TinyMUX 
 */

/*
 * 2.0
 * All known bugs fixed with disk-based.  Played with gdbm, it
 * sucked.  Now using bsd 4.4 hash stuff.
 */

/*
 * 1.12
 * * All known bugs fixed after several days of debugging 1.10/1.11.
 * * Much string-handling braindeath patched, but needs a big overhaul,
 * * really.   GAC 2/10/91
 */

/*
 * 1.11
 * * Fixes for 1.10.  (@name didn't call do_name, etc.)
 * * Added dexamine (debugging examine, dumps the struct, lots of info.)
 */

/*
 * 1.10
 * * Finally got db2newdb working well enough to run from the big (30000
 * * object) db with ATR_KEY and ATR_NAME defined.   GAC 2/3/91
 */

/*
 * TinyCWRU version.c file.  Add a comment here any time you've made a
 * * big enough revision to increment the TinyCWRU version #.
 */

void do_version(player, cause, extra)
dbref player, cause;
int extra;
{
    char *buff;

    notify(player, mudstate.version);
    buff = alloc_mbuf("do_version");
    sprintf(buff, "Build date: %s", MUX_BUILD_DATE);
    notify(player, buff);
    free_mbuf(buff);
}

void init_version(void) {
    char mux_version[MBUF_SIZE] = "";

#ifdef HUDINFO_SUPPORT
    strcat(mux_version, "+HUD");
#endif

#define HAG_WAS_HERE
#ifdef HAG_WAS_HERE
    strcat(mux_version, "+HAG");
#endif

#ifdef SQL_SUPPORT
    strcat(mux_version, "+SQL");
#endif

#ifdef ARBITRARY_LOGFILES
    strcat(mux_version, "+ALG");
#endif
    
    /* Version Identification string for version() and VERSION command */
    /* BtOnline-BTechMUX x.x build #<x> */
#ifdef DEBUG
    snprintf(mudstate.version, 128, "%s.%s%s build #%s DEBUG svn revision %s",
            PACKAGE_STRING, MINOR_REVNUM, mux_version, MUX_BUILD_NUM, SVN_REVISION);
#else
    snprintf(mudstate.version, 128, "%s.%s build #%s (%s)",
            PACKAGE_STRING, MINOR_REVNUM, MUX_BUILD_NUM, mux_version);
#endif

    STARTLOG(LOG_ALWAYS, "INI", "START") {
        log_text((char *) "Starting: ");
        log_text(mudstate.version);
        ENDLOG;
    } STARTLOG(LOG_ALWAYS, "INI", "START") {
        log_text((char *) "Build date: ");

        log_text((char *) MUX_BUILD_DATE);
        ENDLOG;
    }
}