From 599d1e736d43d9301972ac927456ea0f51031e21 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 21 Jul 2023 11:45:58 +0200 Subject: [PATCH] Expanded update_version_string.sh to also update Windows_Portable_README.txt --- tools/update_version_string.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/update_version_string.sh b/tools/update_version_string.sh index 7d490d3c3..43e9e96be 100755 --- a/tools/update_version_string.sh +++ b/tools/update_version_string.sh @@ -10,12 +10,13 @@ # The script has to be run from within the tools directory. # # Example use: -# ./update_version_string.sh 1 2 0 beta1 +# ./update_version_string.sh 2 1 0 beta # # The following files are updated by this script: # es-app/CMakeLists.txt # es-app/src/EmulationStation.h # es-app/assets/EmulationStation-DE_Info.plist +# es-app/assets/Windows_Portable_README.txt # # This script is only intended to be used on Linux systems. # @@ -113,4 +114,11 @@ NEWSTRING="${1}.${2}.${3}${SUFFIX}" cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE mv $TEMPFILE $MODIFYFILE +##### Windows_Portable_README.txt + +ROW_NUM=$(grep -n "ES-DE release:" ../es-app/assets/Windows_Portable_README.txt | cut -f1 -d:) +ROW_NUM=$((ROW_NUM+1)) +NEWSTRING=${1}.${2}.${3}${SUFFIX} +sed -i ${ROW_NUM}s/.*/$(echo $NEWSTRING | unix2dos)/ ../es-app/assets/Windows_Portable_README.txt + echo "Done updating, don't forget to run generate_man_page.sh once the binary has been compiled with the new version string."