diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:29:18 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:29:18 +0200 |
commit | 4d1edc899a86791ec57c0d3b2b3d7427f138463f (patch) | |
tree | ed1c7031c54d8f3a3897081c4a1040ace9d8f4ae /2019-worms/tests/import-replay.sh | |
parent | 01a849c6b26afd076989f645c6153d8ce1422281 (diff) | |
parent | 3f5492b2bb67326be43cd7c5ba02ccf0ba1ae0e3 (diff) |
Merge branch 'worms-main'
Diffstat (limited to '2019-worms/tests/import-replay.sh')
-rwxr-xr-x | 2019-worms/tests/import-replay.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2019-worms/tests/import-replay.sh b/2019-worms/tests/import-replay.sh new file mode 100755 index 0000000..216c235 --- /dev/null +++ b/2019-worms/tests/import-replay.sh @@ -0,0 +1,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 |