Explorar el Código

* Use misc/commit for now on instead of 'commit'
Now places TS in build.h for main.c (int) buildts


svn: 279

Bryan Drewery hace 22 años
padre
commit
552b362df9
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      src/Makefile.in
  2. 2 0
      src/main.c

+ 1 - 1
src/Makefile.in

@@ -142,7 +142,7 @@ flags.o: flags.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h prot
  ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h
-main.o: main.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
+main.o: main.c main.h build.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \

+ 2 - 0
src/main.c

@@ -8,6 +8,7 @@
  */
 
 #include "main.h"
+#include "build.h"
 #include <libgen.h>
 #include <fcntl.h>
 #include <time.h>
@@ -80,6 +81,7 @@ extern jmp_buf		 alarmret;
 int role;
 int loading = 0;
 
+int buildts = CVSBUILD;		/* build timestamp (UTC) */
 char	egg_version[1024] = "1.0.11";
 int	egg_numver = 1001100;
 time_t lastfork=0;