Fixed an issue where update_version_string.sh did not properly update the version.

This commit is contained in:
Leon Styhre 2021-07-05 20:53:35 +02:00
parent aa67020326
commit f22ec86cd1

View file

@ -54,6 +54,25 @@ mv $TEMPFILE $MODIFYFILE
##### EmulationStation.h
MODIFYFILE=../es-app/src/EmulationStation.h
MODIFYSTRING=$(grep "PROGRAM_VERSION_MAJOR " $MODIFYFILE)
NEWSTRING="#define PROGRAM_VERSION_MAJOR ${1}"
cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE
mv $TEMPFILE $MODIFYFILE
MODIFYSTRING=$(grep "PROGRAM_VERSION_MINOR " $MODIFYFILE)
NEWSTRING="#define PROGRAM_VERSION_MINOR ${2}"
cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE
mv $TEMPFILE $MODIFYFILE
MODIFYSTRING=$(grep "PROGRAM_VERSION_MAINTENANCE " $MODIFYFILE)
NEWSTRING="#define PROGRAM_VERSION_MAINTENANCE ${3}"
cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE
mv $TEMPFILE $MODIFYFILE
MODIFYSTRING=$(grep "PROGRAM_VERSION_STRING" $MODIFYFILE)
NEWSTRING="#define PROGRAM_VERSION_STRING \"${1}.${2}.${3}${SUFFIX}\""