rubidium@7780: /* $Id$ */ rubidium@7780: rubidium@7780: /** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */ rubidium@7780: rubidium@7780: #include "stdafx.h" smatz@9085: #include "rev.h" rubidium@7780: rubidium@7780: /** rubidium@7780: * The text version of OpenTTD's revision. rubidium@7780: * This will be either "..[-RC]", rubidium@7780: * "r[M][-]" or "norev000". rubidium@7780: * rubidium@7780: * The major, minor and build are the numbers that describe releases of rubidium@7780: * OpenTTD (like 0.5.3). "-RC" is used to flag release candidates. rubidium@7780: * rubidium@7780: * The revision number is fairly straight forward. The M is to show that rubidium@7780: * the binary is made from modified source code. The branch shows the rubidium@7780: * branch the revision is of and will not be there when it is trunk. rubidium@7780: * rubidium@7780: * norev000 is for non-releases that are made on systems without rubidium@7780: * subversion or sources that are not a checkout of subversion. rubidium@7780: */ smatz@9085: const char _openttd_revision[] = "@@VERSION@@"; rubidium@7780: rubidium@7780: /** rubidium@7780: * The NewGRF revision of OTTD: rubidium@7780: * bits meaning. rubidium@7780: * 28-31 major version rubidium@7780: * 24-27 minor version rubidium@7780: * 20-23 build rubidium@7780: * 19 1 if it is a release, 0 if it is not. rubidium@7780: * 0-18 revision number; 0 for releases and when the revision is unknown. rubidium@7780: * rubidium@7780: * The 19th bit is there so the development/betas/alpha, etc. leading to a rubidium@7780: * final release will always have a lower version number than the released rubidium@7780: * version, thus making comparisions on specific revisions easy. rubidium@7780: */ smatz@9085: const uint32 _openttd_newgrf_version = 0 << 28 | 7 << 24 | 0 << 20 | 0 << 19 | (@@REVISION@@ & ((1 << 19) - 1)); rubidium@7780: rubidium@7564: #ifdef __MORPHOS__ rubidium@7780: /** rubidium@7780: * Variable used by MorphOS to show the version. rubidium@7780: */ rubidium@9118: extern const char morphos_versions_tag[] = "$VER: OpenTTD @@VERSION@@ (@@DATE@@) OpenTTD Team [MorphOS, PowerPC]"; rubidium@7564: #endif