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:
parent
4c8bb492a3
commit
122171b8d1
5 changed files with 1325 additions and 40 deletions
|
@ -175,6 +175,7 @@ then
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
git-add include/emptime.h src/lib/gen/emptime.c
|
||||||
git-pull
|
git-pull
|
||||||
sh ./bootstrap
|
sh ./bootstrap
|
||||||
./configure --prefix ${BOXDIR}/${WORKDIR}/emp4 ${CONFIGURE_OPTIONS}
|
./configure --prefix ${BOXDIR}/${WORKDIR}/emp4 ${CONFIGURE_OPTIONS}
|
||||||
|
|
|
@ -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.
|
|
1324
src/scripts/nightly/patches/All/emptime.c.patch
Normal file
1324
src/scripts/nightly/patches/All/emptime.c.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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 ");
|
|
|
@ -1,20 +1,6 @@
|
||||||
Index: empserver/src/lib/subs/pr.c
|
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 18 Aug 2007 17:03:13 -0000 1.41
|
||||||
+++ empserver/src/lib/subs/pr.c 9 Sep 2007 02:42:51 -0000
|
+++ 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 @@
|
@@ -351,7 +358,7 @@
|
||||||
void
|
void
|
||||||
prprompt(int min, int btu)
|
prprompt(int min, int btu)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue