Skip to content

Commit

Permalink
Fix version replace bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Dec 30, 2023
1 parent 966612b commit 045a427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 045a427

Please sign in to comment.