summaryrefslogtreecommitdiff
path: root/2019-worms/tests/import-replay.sh
blob: 216c2356a33e229eb6776e8ce6ebe46c745feb35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#/bin/sh

# $1: The match-log directory
# Should be run from the tests directory.

logname=$(basename $1)

mkdir replays/$logname
cp $1/A*.csv replays/$logname/A-log.csv
cp $1/B*.csv replays/$logname/B-log.csv
cp $1/Round\ 001/A*/JsonMap.json replays/$logname/A-init.json
cp $1/Round\ 001/B*/JsonMap.json replays/$logname/B-init.json