mirror of https://github.com/OpenTTD/OpenTTD
(svn r661) Make strgen print its own revision instead of the repo's.
This also fixes the annoying unecessary language file recompiles.release/0.4.5
parent
d753aeea58
commit
0f24c74b14
2
Makefile
2
Makefile
|
@ -618,7 +618,7 @@ $(64_bit_warnings):
|
||||||
$(warning 64 bit CPUs will get some 64 bit specific bugs!)
|
$(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)
|
$(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 $@'; \
|
@echo 'Compiling and Linking $@'; \
|
||||||
$(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER)
|
$(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER)
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_REV
|
|
||||||
extern char _openttd_revision[];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __MORPHOS__
|
#ifdef __MORPHOS__
|
||||||
#ifdef stderr
|
#ifdef stderr
|
||||||
#undef stderr
|
#undef stderr
|
||||||
|
@ -748,9 +744,7 @@ int CDECL main(int argc, char* argv[])
|
||||||
int show_todo = 0;
|
int show_todo = 0;
|
||||||
|
|
||||||
if (argc > 1 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version"))) {
|
if (argc > 1 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version"))) {
|
||||||
#ifdef WITH_REV
|
puts("$Revision:$");
|
||||||
puts((char*)_openttd_revision);
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue