server/process/cron/create-orders
Enno Rehling 95d0b2a413 add current version of processing scripts
fix a crash in checkpasswd
2015-01-11 01:23:47 +01:00

16 lines
317 B
Text
Executable file

GAME=$1
TURN=$2
if [ ! -d $ERESSEA/game-$GAME ] ; then
echo "No such game: $GAME"
exit 1
fi
cd $ERESSEA/game-$GAME
if [ -d orders.dir.$TURN ]; then
echo "orders.dir.$TURN already exists"
else
mv orders.dir orders.dir.$TURN
mkdir -p orders.dir
fi
ls -1rt orders.dir.$TURN/turn-* | xargs cat > orders.$TURN