Skip to content

Commit

Permalink
master: new_release.sh: improve automatic edit of user_guide.xrst
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbell committed Jul 29, 2024
1 parent b4531c2 commit 75d8f0a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .coin-or/projDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ https://opensource.org/licenses/EPL-2.0
<!-- needed. -->

<stableVersionNumber>20240000</stableVersionNumber>
<releaseNumber>20240000.6</releaseNumber>
<releaseNumber>20240000.7</releaseNumber>

</developmentStatus>

Expand Down
21 changes: 17 additions & 4 deletions bin/new_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ sed -i .coin-or/projDesc.xml \
#
# user_guide.xrst
sed -i user_guide.xrst \
-e "/\/archive\//s|[0-9]\{8\}\.[0-9]*|$tag|g" \
-e "s|release-[0-9]\{8\}\.[0-9]*|release-$tag|g" \
-e "s|documentation-[0-9]\{8\}|documentation-$stable_version|g" \
-e "s|stable-[0-9]\{8\}|stable-$stable_version|g" \
-e "s|release-[0-9]\{8\}\.[0-9]*|release-$tag|" \
-e "s|archive/[0-9]\{8\}\.[0-9]*|archive/$tag|" \
-e "s|documentation-[0-9]\{8\}|documentation-$stable_version|" \
-e "s|stable-[0-9]\{8\}|stable-$stable_version|"
echo 'The edits to user_guide.xrst are new.'
echo 'If they are working correctly, remove this message and the exit 0 below.'
exit 0
#
# stable_branch
stable_branch=stable/$stable_version
Expand Down Expand Up @@ -121,6 +124,16 @@ then
exit 1
fi
#
# user_guide.xrst
sed -i user_guide.xrst \
-e "s|release-[0-9]\{8\}\.[0-9]*|release-$tag|" \
-e "s|archive/[0-9]\{8\}\.[0-9]*|archive/$tag|" \
-e "s|documentation-[0-9]\{8\}|documentation-latest|" \
-e "s|stable-[0-9]\{8\}|latest/"
echo 'The edits to user_guide.xrst are new.'
echo 'If they are working correctly, remove this message and the exit 0 below.'
exit 0
#
# CMakeLists.txt
cat << EOF > temp.sed
s|^SET( *cppad_version *"[0-9.]*")|SET(cppad_version "$tag")|
Expand Down

0 comments on commit 75d8f0a

Please sign in to comment.