From 045a427c328a6d84b829964e53dabfae01f50cae Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 30 Dec 2023 09:08:10 +0800 Subject: [PATCH] Fix version replace bug. --- scripts/update_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_version.sh b/scripts/update_version.sh index 69cdfef..f2ef802 100755 --- a/scripts/update_version.sh +++ b/scripts/update_version.sh @@ -59,7 +59,7 @@ function update_changelog() { let NEXT=$REVISION+1 echo "Last revision is $REVISION, next is $NEXT" - cat $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp |sed "s/${REVISION}/${NEXT}/g" > $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp.tmp && + cat $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp |sed "s/VERSION_REVISION ${REVISION}/VERSION_REVISION ${NEXT}/g" > $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp.tmp && mv $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp.tmp $SRS_HOME/trunk/src/core/srs_core_version${VERSION}.hpp ret=$?; if [[ $ret -ne 0 ]]; then echo "Failed to update version"; exit $ret; fi