Skip to content

Commit

Permalink
just use NEXT_FULL_TAG directly for VERSION_CPP
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Nov 3, 2023
1 parent 01dcff6 commit 20df41f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ CURRENT_LONG_TAG=${CURRENT_MAJOR}.${CURRENT_MINOR}.${CURRENT_PATCH}
#Get <major>.<minor> for next version
NEXT_MAJOR=$(echo $NEXT_FULL_TAG | awk '{split($0, a, "."); print a[1]}')
NEXT_MINOR=$(echo $NEXT_FULL_TAG | awk '{split($0, a, "."); print a[2]}')
NEXT_PATCH=$(echo $NEXT_FULL_TAG | awk '{split($0, a, "."); print a[3]}')
NEXT_SHORT_TAG=${NEXT_MAJOR}.${NEXT_MINOR}

echo "Preparing release $CURRENT_TAG => $NEXT_FULL_TAG"
Expand All @@ -37,9 +36,7 @@ sed_runner 's/release = .*/release = '"'${NEXT_FULL_TAG}'"'/g' docs/source/conf.

# Centralized version file update
echo "${NEXT_FULL_TAG}" > VERSION
# update VERSION files used by C++/CMake (TODO: avoid these duplicate copies)
NEXT_CPP_LONG_TAG=${NEXT_MAJOR}.${NEXT_MINOR}.${NEXT_PATCH} # no leading 'v' or trailing 'a'
echo "${NEXT_CPP_LONG_TAG}" > VERSION_CPP
echo "${NEXT_FULL_TAG}" > VERSION_CPP

sed_runner "s#\[Version ${CURRENT_LONG_TAG}\](release_notes/v${CURRENT_LONG_TAG}.md)#\[Version ${NEXT_FULL_TAG}\](release_notes/v${NEXT_FULL_TAG}.md)#g" python/cucim/docs/index.md
sed_runner "s/v${CURRENT_LONG_TAG}/v${NEXT_FULL_TAG}/g" python/cucim/docs/getting_started/index.md
Expand Down

0 comments on commit 20df41f

Please sign in to comment.