src/rev.cpp.in
branchnoai
changeset 9722 ebf0ece7d8f6
parent 9703 d2a6acdbd665
child 9217 11a6a3aed82c
child 10654 e511144c1b70
equal deleted inserted replaced
9721:9a27928bcd5e 9722:ebf0ece7d8f6
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */
       
     4 
       
     5 #include "stdafx.h"
       
     6 
       
     7 /**
       
     8  * The text version of OpenTTD's revision.
       
     9  * This will be either "<major>.<minor>.<build>[-RC<rc>]",
       
    10  * "r<revision number>[M][-<branch>]" or "norev000".
       
    11  *
       
    12  * The major, minor and build are the numbers that describe releases of
       
    13  * OpenTTD (like 0.5.3). "-RC" is used to flag release candidates.
       
    14  *
       
    15  * The revision number is fairly straight forward. The M is to show that
       
    16  * the binary is made from modified source code. The branch shows the
       
    17  * branch the revision is of and will not be there when it is trunk.
       
    18  *
       
    19  * norev000 is for non-releases that are made on systems without
       
    20  * subversion or sources that are not a checkout of subversion.
       
    21  */
     1 extern const char _openttd_revision[] = "@@VERSION@@";
    22 extern const char _openttd_revision[] = "@@VERSION@@";
       
    23 
       
    24 /**
       
    25  * The NewGRF revision of OTTD:
       
    26  * bits  meaning.
       
    27  * 28-31 major version
       
    28  * 24-27 minor version
       
    29  * 20-23 build
       
    30  *    19 1 if it is a release, 0 if it is not.
       
    31  *  0-18 revision number; 0 for releases and when the revision is unknown.
       
    32  *
       
    33  * The 19th bit is there so the development/betas/alpha, etc. leading to a
       
    34  * final release will always have a lower version number than the released
       
    35  * version, thus making comparisions on specific revisions easy.
       
    36  */
       
    37 uint32 _openttd_newgrf_version = 0 << 28 | 6 << 24 | 0 << 20 | 0 << 19 | (@@REVISION@@ & ((1 << 19) - 1));
       
    38 
     2 #ifdef __MORPHOS__
    39 #ifdef __MORPHOS__
       
    40 /**
       
    41  * Variable used by MorphOS to show the version.
       
    42  */
     3 extern const char morphos_versions_tag[] = "\\0$VER: OpenTTD @@VERSION@@ (@@DATE@@)  OpenTTD Team [MorphOS, PowerPC]";
    43 extern const char morphos_versions_tag[] = "\\0$VER: OpenTTD @@VERSION@@ (@@DATE@@)  OpenTTD Team [MorphOS, PowerPC]";
     4 #endif
    44 #endif