From 6c425fa5334b2adce0431aaae7194a2ef7ee9cb1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 24 Apr 2022 21:38:33 +0200 Subject: [PATCH] Removed the deprecated tools/update_theme_formatversion.sh script. --- tools/update_theme_formatversion.sh | 35 ----------------------------- 1 file changed, 35 deletions(-) delete mode 100755 tools/update_theme_formatversion.sh diff --git a/tools/update_theme_formatversion.sh b/tools/update_theme_formatversion.sh deleted file mode 100755 index ca20b91e7..000000000 --- a/tools/update_theme_formatversion.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/bash -# SPDX-License-Identifier: MIT -# -# EmulationStation Desktop Edition -# update_theme_formatversion.sh -# -# Updates the format version of all the XML files in a theme set. -# This needs to be run from the theme directory, e.g.: -# cd themes/rbsimple-DE && ../../tools/update_theme_formatversion.sh 5 6 -# -# This script is only intended to be used on Linux systems. -# - -if [ $# -ne 2 ]; then - echo "Usage: ./update_theme_formatversion.sh " - echo "For example:" - echo "./update_theme_formatversion.sh 5 6" - exit -fi - -TEMPFILE_FILELIST=tempfile_filelist_$(date +%H%M%S) -TEMPFILE_PROCESS=tempfile_process_$(date +%H%M%S) -OLDVERSION=$1 -NEWVERSION=$2 - -find . -name '*.xml' > $TEMPFILE_FILELIST - -for file in $(cat $TEMPFILE_FILELIST); do - echo "Processing file:" $file - cat $file | sed s/"${OLDVERSION}"/"${NEWVERSION}"/g > \ - $TEMPFILE_PROCESS - mv $TEMPFILE_PROCESS $file -done - -rm $TEMPFILE_FILELIST