Add a time base for nightly builds

Increment the time base at the each update.
Remove the unnecessary patches that overrode
the timestamp printouts.
This commit is contained in:
Ron Koenderink 2008-10-26 15:59:43 -06:00
parent 4c8bb492a3
commit 122171b8d1
5 changed files with 1325 additions and 40 deletions

View file

@ -175,6 +175,7 @@ then
echo ""
fi
git-add include/emptime.h src/lib/gen/emptime.c
git-pull
sh ./bootstrap
./configure --prefix ${BOXDIR}/${WORKDIR}/emp4 ${CONFIGURE_OPTIONS}

View file

@ -1,13 +0,0 @@
diff --git a/src/lib/common/file.c b/src/lib/common/file.c
index ae851ae..872c363 100644
--- a/src/lib/common/file.c
+++ b/src/lib/common/file.c
@@ -384,7 +384,7 @@ do_write(struct empfile *ep, void *buf, int id, int count)
return -1;
if (ep->flags & EFF_TYPED) {
- now = ep->flags & EFF_NOTIME ? (time_t)-1 : time(NULL);
+ now = ep->flags & EFF_NOTIME ? (time_t)-1 : (time_t)100;
for (i = 0; i < count; i++) {
/*
* TODO Oopses here could be due to bad data corruption.

File diff suppressed because it is too large Load diff

View file

@ -1,13 +0,0 @@
diff --git a/src/lib/commands/lost.c b/src/lib/commands/lost.c
index 8e410e6..b29c0a2 100644
--- a/src/lib/commands/lost.c
+++ b/src/lib/commands/lost.c
@@ -51,7 +51,7 @@ lost(void)
prdate();
nlost = 0;
- time(&now);
+ now = (time_t)101;
pr("DUMP LOST ITEMS %ld\n", (long)now);
if (player->god)
pr("owner ");

View file

@ -1,20 +1,6 @@
Index: empserver/src/lib/subs/pr.c
--- empserver/src/lib/subs/pr.c 18 Aug 2007 17:03:13 -0000 1.41
+++ empserver/src/lib/subs/pr.c 9 Sep 2007 02:42:51 -0000
@@ -68,6 +68,13 @@
static void upr_player(struct player *pl, int id, char *buf);
static void outid(struct player *pl, int n);
+/* Hack for nightlybuild */
+char *
+ctime(const time_t *clock)
+{
+ return "Thu Jan 1 00:00:00 GMT 1970\n";
+}
+
/*
* Print to current player similar to printf().
* Use printf-style FORMAT with the optional arguments.
@@ -351,7 +358,7 @@
void
prprompt(int min, int btu)