Changeset - r451:4141d0bee2d7
[Not reviewed]
master
0 2 0
tron - 20 years ago 2004-11-17 18:38:07
tron@openttd.org
(svn r661) Make strgen print its own revision instead of the repo's.
This also fixes the annoying unecessary language file recompiles.
2 files changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general)
Makefile
Show inline comments
 
@@ -615,13 +615,13 @@ endian.h: $(ENDIAN_CHECK)
 
$(endwarnings): $(64_bit_warnings)
 

	
 
$(64_bit_warnings):
 
	$(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)
 

	
 
lang/english.lng: lang/english.txt $(STRGEN)
 
	@echo 'Generating $@'; \
 
	$(STRGEN)
strgen/strgen.c
Show inline comments
 
@@ -5,16 +5,12 @@
 
#include <stdarg.h>
 

	
 
#if !defined(WIN32) || defined(__CYGWIN__)
 
#include <unistd.h>
 
#endif
 

	
 
#ifdef WITH_REV
 
extern char _openttd_revision[];
 
#endif
 

	
 
#ifdef __MORPHOS__
 
#ifdef stderr
 
#undef stderr
 
#endif
 
#define stderr stdout
 
#endif // __MORPHOS__
 
@@ -745,15 +741,13 @@ int CDECL main(int argc, char* argv[])
 
{
 
	char *r;
 
	char buf[256];
 
	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;
 
	}
 

	
 
	if (argc > 1 && !strcmp(argv[1], "-t")) {
 
		show_todo = 1;
 
		argc--, argv++;
0 comments (0 inline, 0 general)