summaryrefslogtreecommitdiff
path: root/strgen/strgen.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-17 18:38:07 +0000
committertron <tron@openttd.org>2004-11-17 18:38:07 +0000
commit0f24c74b14817a370286491b9470005714091ac7 (patch)
tree4fc63b4ab30e5619547afe25d484942cda78f436 /strgen/strgen.c
parentd753aeea58066c74e46f176cf7e668c62cfbbfd7 (diff)
downloadopenttd-0f24c74b14817a370286491b9470005714091ac7.tar.xz
(svn r661) Make strgen print its own revision instead of the repo's.
This also fixes the annoying unecessary language file recompiles.
Diffstat (limited to 'strgen/strgen.c')
-rw-r--r--strgen/strgen.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c
index 28781554d..0a8030258 100644
--- a/strgen/strgen.c
+++ b/strgen/strgen.c
@@ -8,10 +8,6 @@
#include <unistd.h>
#endif
-#ifdef WITH_REV
-extern char _openttd_revision[];
-#endif
-
#ifdef __MORPHOS__
#ifdef stderr
#undef stderr
@@ -748,9 +744,7 @@ int CDECL main(int argc, char* argv[])
int show_todo = 0;
if (argc > 1 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version"))) {
-#ifdef WITH_REV
- puts((char*)_openttd_revision);
-#endif
+ puts("$Revision:$");
return 0;
}