httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@ukweb.com>
Subject PR#1309 - buildmark
Date Mon, 27 Oct 1997 16:25:19 GMT
At the moment we build buildmark.c with `date`. This may have problems on
other Locales, and obviously will never work on NT/95. So perhaps we
should use __DATE__ and __TIME__ instead?

Here is a patch to do this. Oh, and wouldn't it be a good idea if httpd -v
output the build time as well? 

//pcs

The new buildmark.c:

const char SERVER_BUILT[] = __DATE__ " " __TIME__;

and the patch...

Index: Makefile.tmpl
===================================================================
RCS file: /export/home/cvs/apachen/src/Makefile.tmpl,v
retrieving revision 1.69
diff -u -r1.69 Makefile.tmpl
--- Makefile.tmpl	1997/10/15 20:30:02	1.69
+++ Makefile.tmpl	1997/10/27 16:19:35
@@ -27,8 +27,6 @@
 	@false
 
 httpd:  subdirs modules.o
-	rm -f buildmark.c
-	echo 'const char SERVER_BUILT[] = "'`date`'";' > buildmark.c
 	$(CC) -c $(CFLAGS) buildmark.c
 	$(CC) $(CFLAGS) $(LDFLAGS)  -o httpd buildmark.o $(OBJS) $(REGLIB) $(LIBS)
 


Mime
View raw message