From b5a45ae04fcc4cb13b82a1813884d5c1638e8b09 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 5 Nov 2021 11:13:20 +0100 Subject: [PATCH] Added a tools script to generate dummy games files. --- tools/create_dummy_game_files.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tools/create_dummy_game_files.sh diff --git a/tools/create_dummy_game_files.sh b/tools/create_dummy_game_files.sh new file mode 100755 index 000000000..f7dfe735f --- /dev/null +++ b/tools/create_dummy_game_files.sh @@ -0,0 +1,23 @@ +#!/usr/bin/bash +# SPDX-License-Identifier: MIT +# +# EmulationStation Desktop Edition +# create_dummy_game_files.sh +# +# This script generates dummy files for each system in the ROM directory and is intended +# primarily for theme testing purposes. You need to run it from a ROM directory previously +# generated by ES-DE as the systems.txt and systeminfo.txt files are used to create the dummy +# files. +# +# This script is only intended to be used on Linux systems. +# + +if [ ! -f ./systems.txt ]; then + echo "Can't find the systems.txt file, you need to run this script from your ROM directory." + exit +fi + +for folder in $(cat systems.txt | cut -f1 -d":"); do + echo Creating dummy file for system ${folder} + touch ${folder}/dummy$(grep "^\." ${folder}/systeminfo.txt | cut -f1 -d " ") +done