mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed an issue where update_version_string.sh did not properly update the version.
This commit is contained in:
parent
aa67020326
commit
f22ec86cd1
|
@ -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}\""
|
||||
|
||||
|
|
Loading…
Reference in a new issue