Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Enno Rehling 2015-09-12 22:48:49 +02:00
commit 772b1cf203
6 changed files with 15 additions and 24 deletions

View File

@ -2,8 +2,8 @@
from sys import argv, exit
from string import join
from os import access, R_OK
from os import system, symlink
import os
import os.path
gamename='Eressea'
@ -43,15 +43,13 @@ for line in infile.readlines():
if options["compression"]=="zip":
output = prefix+"zip"
files = [output]
if (access(output, R_OK)):
pass
else:
if not os.path.isfile(output):
parameters = []
for extension in reports:
filename = "%s%s" % (prefix, extension)
if (access(filename, R_OK)):
if os.path.isfile(filename):
parameters = parameters + [ filename ]
system("zip %s -q -m -j %s" % (output, join(parameters," ")))
os.system("zip %s -q -m -j %s" % (output, join(parameters," ")))
else:
files = []
for extension in reports:
@ -59,16 +57,13 @@ for line in infile.readlines():
filename = "%s%s" % (prefix, extension)
output = "%s%s.bz2" % (prefix, extension)
files = files+[output]
if access(filename, R_OK):
if (access(output, R_OK)):
#print output, "exists, skipping"
if os.path.isfile(filename):
if os.path.isfile(output):
continue
system("bzip2 %s" % filename)
if not access('../wochenbericht.txt'):
os.symlink('../parteien', '../wochenbericht.txt')
os.system("bzip2 %s" % filename)
extras = [ '../wochenbericht.txt', '../express.txt' ]
for extra in extras:
if access(extra, R_OK):
if os.path.isfile(extra):
files = files + [extra]
options["files"] = join(files, " ")
batch = file("%s.sh" % options["faction"], "w")

View File

@ -2,7 +2,6 @@
PATH=/home/eressea/bin:/opt/bin:/usr/local/bin:/usr/bin:/bin
ERESSEA=/home/eressea/eressea
ATLANTIS=/home/eressea/atlantis
ENABLED=yes
PREVIEW=yes
CONFIRM=yes
@ -14,5 +13,5 @@ CONFIRM=yes
15 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 3
25 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 4
35 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 2
39 08 * * Sun [ "$PREVIEW" = "yes" ] && $ERESSEA/server/bin/preview.cron
30 07 * * Sun [ "$PREVIEW" = "yes" ] && $ERESSEA/server/bin/preview.cron
*/5 * * * * [ "$CONFIRM" = "yes" ] && $ERESSEA/server/bin/orders.cron 2 3 4

View File

@ -40,6 +40,5 @@ fi
echo "sending reports for game $GAME, turn $TURN"
$BIN/compress.sh $GAME $TURN
$BIN/sendreports.sh $GAME
[ $GAME -lt 4 ] && $BIN/send-summary $GAME
$BIN/backup-eressea $GAME $TURN
rm -f test/execute.lock

View File

@ -27,6 +27,6 @@ install -v $ROOT/process/$prg $DEST/bin/
done
# install crontab, but only on the eressea server:
HOST=`hostname`
[ "gruenbaer" = "$HOST" ] && crontab $ROOT/process/cron/crontab
# in fact, never do this, because it overwrites hand-edits
#WHOAMI=`whoami`@`hostname`
#[ "eressea@gruenbaer" = "$WHOAMI" ] && crontab $ROOT/process/cron/crontab

View File

@ -12,8 +12,6 @@ local function curse(file)
elseif not bitset(f.flags, 16) then
print("cursing " .. tostring(f))
f.flags = f.flags + 16
else
print("already cursed: " .. tostring(f))
end
end
end

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 3
#define VERSION_MINOR 6
#define VERSION_BUILD 3
#define VERSION_MINOR 7
#define VERSION_BUILD 0