Skip to content

Commit

Permalink
master: check_version.sh: user_guide.xrt: allow multiple replecements…
Browse files Browse the repository at this point in the history
… per line.
  • Loading branch information
bradbell committed Jan 8, 2024
1 parent 4c7d4c5 commit 3636ba8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/check_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ cat << EOF > temp.sed
s|^SET( *cppad_version *"[0-9.]*")|SET(cppad_version "$version")|
#
# user_guide.xrst
s|[0-9]\\{8\\}[.][0-9]*|$version|
s|documentation-[0-9]\\{8\\}|documentation-latest|
s|stable-[0-9]\\{8\\}|latest|
s|cppad-[0-9]\\{8\\}[0-9.]*|cppad-$stable|
s|[0-9]\\{8\\}[.][0-9]*|$version|g
s|documentation-[0-9]\\{8\\}|documentation-latest|g
s|stable-[0-9]\\{8\\}|latest|g
s|cppad-[0-9]\\{8\\}[0-9.]*|cppad-$stable|g
EOF
else
cat << EOF > temp.sed
Expand All @@ -104,7 +104,7 @@ cat << EOF > temp.sed
s|^SET( *cppad_version *"[0-9.]*")|SET(cppad_version "$version")|
#
# user_guide.xrst
s|cppad-[0-9]\\{8\\}|cppad-$version|
s|cppad-[0-9]\\{8\\}|cppad-$version|g
EOF
fi
#
Expand Down

0 comments on commit 3636ba8

Please sign in to comment.