Skip to content

Commit

Permalink
stable/20240000: run master bin/new_release.sh with release equal to 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbell committed Mar 1, 2024
1 parent 6a95be9 commit 6db6ac1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ IF( POLICY CMP0054 )
ENDIF( POLICY CMP0054 )
#
# cppad_version is used by version.sh to get the version number.
SET(cppad_version "20240000.3")
SET(cppad_version "20240000.4")
SET(cppad_url "https://coin-or.github.io/CppAD" )
SET(cppad_description "Differentiation of C++ Algorithms" )
IF( NOT DEFINED CMAKE_BUILD_TYPE)
Expand Down
36 changes: 13 additions & 23 deletions bin/check_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e -u
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]>
# SPDX-FileContributor: 2003-22 Bradley M. Bell
# SPDX-FileContributor: 2003-24 Bradley M. Bell
# ----------------------------------------------------------------------------
if [ $# != 0 ]
then
Expand Down Expand Up @@ -46,31 +46,21 @@ version=$(
sed -e 's|.*"\([^"]*\)".*|\1|'
)
#
# version, release
release='yes'
if echo $version | grep '[0-9]\{4\}0000[.]' > /dev/null
# branch
branch=$(git branch | sed -n -e '/^[*]/p' | sed -e 's|^[*] *||')
#
# version
if [ "$branch" == 'master' ]
then
version=$( date +%Y%m%d )
fi
if echo $branch | grep '^stable/' > /dev/null
then
res=''
while [ "$res" != 'ok' ] && [ "$res" != 'date' ] && [ "$res" != 'abort' ]
do
echo "In CMakeLists.txt version = $version"
echo 'ok: use this version.'
echo 'date: repalce this by the current date.'
echo 'abort: if you whish to change the version in CMakeLists.txt.'
read -p '[ok/date/abort] ?' res
done
if [ "$res" == 'abort' ]
if ! echo $version | grep '^[0-9]\{4\}0000[.]' > /dev/null
then
echo 'check_version.sh: Stable version does not begin with yyyy0000.'
exit 1
fi
if [ "$res" == 'date' ]
then
release='no'
version=$( date +%Y%m%d )
fi
else
release='no'
version=$( date +%Y%m%d )
fi
#
# version_ok
Expand All @@ -83,7 +73,7 @@ version_files='
'
#
# temp.sed
if [ "$release" == 'yes' ]
if echo $branch | grep '^stable/' > /dev/null
then
stable=$( echo $version | sed -e 's|[.][0-9]*$||' )
cat << EOF > temp.sed
Expand Down
2 changes: 1 addition & 1 deletion user_guide.xrst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cppad-20240000: CppAD User's Manual
.. list-table::
:widths: auto

* - `release-20240000.3 <https://github.com/coin-or/CppAD/archive/20240000.3.tar.gz>`_
* - `release-20240000.4 <https://github.com/coin-or/CppAD/archive/20240000.4.tar.gz>`_
- `documentation-latest <https://cppad.readthedocs.io/latest>`_
- `other releases <https://github.com/coin-or/CppAD/tags>`_
- `github <https://github.com/coin-or/CppAD>`_
Expand Down

0 comments on commit 6db6ac1

Please sign in to comment.