From 73a4f0e7e9bd38d9729637e4cd79480f212cd30a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 19 Apr 2022 17:32:10 +0200 Subject: [PATCH] Updated update_version_string.sh for the recent CMake configuration changes. --- tools/update_version_string.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/update_version_string.sh b/tools/update_version_string.sh index a90efe9d1..dceb65885 100755 --- a/tools/update_version_string.sh +++ b/tools/update_version_string.sh @@ -42,9 +42,9 @@ TEMPFILE=update_version_string.tmp ##### CMakeLists.txt -MODIFYFILE=../es-app/CMakeLists.txt -MODIFYSTRING=$(grep "set(CPACK_PACKAGE_VERSION" $MODIFYFILE) -NEWSTRING="set(CPACK_PACKAGE_VERSION \"${1}.${2}.${3}${SUFFIX}\")" +MODIFYFILE=../CMakeLists.txt +MODIFYSTRING=$(grep "set(ES_VERSION" $MODIFYFILE) +NEWSTRING="set(ES_VERSION ${1}.${2}.${3}${SUFFIX})" cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE mv $TEMPFILE $MODIFYFILE