summaryrefslogtreecommitdiff
path: root/tests/replays/import-replay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/replays/import-replay.sh')
-rwxr-xr-xtests/replays/import-replay.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/replays/import-replay.sh b/tests/replays/import-replay.sh
new file mode 100755
index 0000000..034efed
--- /dev/null
+++ b/tests/replays/import-replay.sh
@@ -0,0 +1,12 @@
+#/bin/sh
+
+# $1: The match-log directory
+# Should be run from the target directory
+
+logname=$(basename $1)
+
+mkdir $logname
+cp $1/A*.csv $logname/A-log.csv
+cp $1/B*.csv $logname/B-log.csv
+cp $1/Round\ 001/A*/JsonMap.json $logname/A-init.json
+cp $1/Round\ 001/B*/JsonMap.json $logname/B-init.json