(svn r661) Make strgen print its own revision instead of the repo's.
authortron
Wed, 17 Nov 2004 18:38:07 +0000
changeset 451 1c72622b9701
parent 450 c5102d6f280e
child 452 520e4ed6945d
(svn r661) Make strgen print its own revision instead of the repo's.
This also fixes the annoying unecessary language file recompiles.
Makefile
strgen/strgen.c
--- a/Makefile	Wed Nov 17 18:22:21 2004 +0000
+++ b/Makefile	Wed Nov 17 18:38:07 2004 +0000
@@ -618,7 +618,7 @@
 	$(warning 64 bit CPUs will get some 64 bit specific bugs!)
 	$(warning If you see any bugs, include in your bug report that you use a 64 bit CPU)
 
-$(STRGEN): strgen/strgen.c rev.o
+$(STRGEN): strgen/strgen.c
 	@echo 'Compiling and Linking $@'; \
 		$(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER)
 
--- a/strgen/strgen.c	Wed Nov 17 18:22:21 2004 +0000
+++ b/strgen/strgen.c	Wed Nov 17 18:38:07 2004 +0000
@@ -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 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;
 	}