From f8a0e0f7f2f9cd5fb69899b5d7037bc969df4339 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 19 Apr 2022 21:36:41 +0200 Subject: Refile for merging repos --- tests/import-replay.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 tests/import-replay.sh (limited to 'tests/import-replay.sh') diff --git a/tests/import-replay.sh b/tests/import-replay.sh deleted file mode 100755 index d0130b1..0000000 --- a/tests/import-replay.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -e - -REPLAY_FOLDER=$1 -OUTPUT_FOLDER=$2 - -mkdir -p $OUTPUT_FOLDER - -for round_folder in $REPLAY_FOLDER/Round*; do - round_name=`basename "$round_folder"` - mkdir -p "$OUTPUT_FOLDER/$round_name" - - player_folders=( "$round_folder"/* ) - player_folder=${player_folders[0]} - opponent_folder=${player_folders[1]} - - cp "$round_foler/GlobalState.json" "$OUTPUT_FOLDER/$round_name/GlobalState.json" - cp "$player_folder/JsonMap.json" "$OUTPUT_FOLDER/$round_name/JsonMap.json" - head -n 1 "$player_folder/PlayerCommand.txt" > "$OUTPUT_FOLDER/$round_name/PlayerCommand.txt" - head -n 1 "$opponent_folder/PlayerCommand.txt" > "$OUTPUT_FOLDER/$round_name/OpponentCommand.txt" -done -- cgit v1.2.3