summaryrefslogtreecommitdiff
path: root/src/rev.cpp.in
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-04 20:31:49 +0000
committerrubidium <rubidium@openttd.org>2009-09-04 20:31:49 +0000
commita1f49db54dd71af71f664a2c6b1a8f8c33e3fb7f (patch)
tree0dda905be11b688ab0a753c5fe8a9b7e9f2a7985 /src/rev.cpp.in
parente540385038efc5b06bc30939c42180e3b70e6398 (diff)
downloadopenttd-a1f49db54dd71af71f664a2c6b1a8f8c33e3fb7f.tar.xz
(svn r17416) -Codechange: move the build date/time 'determination' to rev.cpp as that's the file most likely to be regularly recompiled
Diffstat (limited to 'src/rev.cpp.in')
-rw-r--r--src/rev.cpp.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rev.cpp.in b/src/rev.cpp.in
index e83c34771..21e084709 100644
--- a/src/rev.cpp.in
+++ b/src/rev.cpp.in
@@ -30,6 +30,14 @@
const char _openttd_revision[] = "!!VERSION!!";
/**
+ * The text version of OpenTTD's build date.
+ * Updating the build date in this file is the safest as it generally gets
+ * updated for each revision in contrary to most other files that only see
+ * updates when they are actually changed themselves.
+ */
+const char _openttd_build_date[] = __DATE__ " " __TIME__;
+
+/**
* Let us know if current build was modified. This detection
* works even in the case when revision string is overriden by
* --revision argument.