From 3f5492b2bb67326be43cd7c5ba02ccf0ba1ae0e3 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 19 Apr 2022 21:27:56 +0200 Subject: Refile for merging repos --- 2019-worms/tests/import-replay.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2019-worms/tests/import-replay.sh (limited to '2019-worms/tests/import-replay.sh') 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 -- cgit v1.2.3